Skip to content

Commit

Permalink
[fix](regression-test) Multi threaded testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjj2010 authored and dataroaring committed Aug 21, 2024
1 parent 6c8d7fb commit 02c1cb4
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ suite("test_agg_schema_key_change_modify","p0") {

//TODO Test the agg model by modify a key type from BOOLEAN to TINYINT
def errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
def insertSql = ""
expectException({
sql initTable
sql initTableData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ suite("test_agg_schema_key_change_modify1","p0") {
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"
def initTable1 = ""
def initTableData1 = ""
def insertSql = ""

/**
* Test the agg model by modify a key type from LARGEINT to other type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ suite("test_agg_schema_value_modify","p0") {
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"

def insertSql = ""
//TODO Test the agg model by modify a value type from BOOLEAN to TINYINT
errorMessagge="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
expectException({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ suite("test_agg_schema_value_modify3", "p0") {
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"


def insertSql = ""
/**
* Test the agg model by modify a value type from MAP to other type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ suite("test_dup_schema_key_change_modify","p0") {

//TODO Test the dup model by modify a key type from BOOLEAN to TINYINT
def errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
def insertSql = ""
expectException({
sql initTable
sql initTableData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ suite("test_dup_schema_key_change_modify1","p0") {
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"
def initTable1 = ""
def initTableData1 = ""

def insertSql = ""
/**
* Test the dup model by modify a key type from LARGEINT to other type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ suite("test_dup_schema_value_modify","p0") {
" (567890123, 'Eve', 0, 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00')," +
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"

def insertSql = ""
//TODO Test the dup model by modify a value type from BOOLEAN to TINYINT
errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
expectException({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ suite("test_dup_schema_value_modify1", "p0") {
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"


def insertSql = ""

/**
* Test the dup model by modify a value type from FLOAT to other type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ suite("test_dup_schema_value_modify3", "p0") {
" (567890123, 'Eve', 0, 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00')," +
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"

def insertSql = ""

/**
* Test the dup model by modify a value type from MAP to other type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

suite("test_dup_schema_value_modify4", "p0") {
def tbName1 = "test_dup_model_value_change3"
def tbName2 = "test_dup_model_value_change_3"

//Test the dup model by adding a value column
sql """ DROP TABLE IF EXISTS ${tbName1} """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ suite("test_unique_schema_key_change_add","p0") {
" (567890123, 'Eve', 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00')," +
" (678901234, 'Frank', 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"

//Test the unique model by adding a key column with VARCHAR
sql initTable
sql initTableData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ suite("test_unique_schema_key_change_drop", "p0") {
" (4, 'Emily Brown', 92.0, 'San Francisco', 28, 2, 5556667778, true, 40, 4000000000, '2024-06-14', '2024-06-14', '2024-06-14 13:30:00', '2024-06-14 13:30:00')," +
" (5, 'David Wilson', 88.9, 'Seattle', 32, 1, 9998887776, false, 50, 5000000000, '2024-06-15', '2024-06-15', '2024-06-15 15:45:00', '2024-06-15 15:45:00');"

def insertSql = ""
//TODO Test the unique model by drop a key type from BOOLEAN
errorMessage = "errCode = 2, detailMessage = Can not drop key column in Unique data model table"
expectException({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ suite("test_unique_schema_key_change_modify","p0") {
" (567890123, 'Eve', 0, 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00')," +
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"
def insertSql = ""

//TODO Test the unique model by modify a key type from BOOLEAN to TINYINT
def errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ suite("test_unique_schema_value_modify","p0") {
" (567890123, 'Eve', 0, 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00')," +
" (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," +
" (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');"

def insertSql = ""
//TODO Test the unique model by modify a value type from BOOLEAN to TINYINT
errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT"
expectException({
Expand Down

0 comments on commit 02c1cb4

Please sign in to comment.