Skip to content

Commit

Permalink
Upgrade runner to Ubuntu 24.04 (#3445)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim authored and yiyun-sj committed May 6, 2024
1 parent cc43956 commit 349f906
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/include/test_runner/test_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct TestStatement {
bool enumerate = false;
bool checkOutputOrder = false;
bool checkColumnNames = false;
bool checkNumeric = false;
std::vector<TestQueryResult> result;
// for multiple conns
std::string batchStatmentsCSVFile;
Expand Down
3 changes: 2 additions & 1 deletion test/include/test_runner/test_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum class TokenType {
BUFFER_POOL_SIZE,
CASE,
CHECK_COLUMN_NAMES,
CHECK_NUMERIC,
CHECK_ORDER,
COMMIT,
DEFINE,
Expand Down Expand Up @@ -61,7 +62,7 @@ const std::unordered_map<std::string, TokenType> tokenMap = {{"-DATASET", TokenT
{"-CREATE_CONNECTION", TokenType::CREATE_CONNECTION}, {"]", TokenType::END_OF_STATEMENT_BLOCK},
{"----", TokenType::RESULT}, {"--", TokenType::SEPARATOR}, {"#", TokenType::EMPTY},
{"-SET", TokenType::SET}, {"-IMPORT_DATABASE", TokenType::IMPORT_DATABASE},
{"-REMOVE_FILE", TokenType::REMOVE_FILE},
{"-REMOVE_FILE", TokenType::REMOVE_FILE}, {"-CHECK_NUMERIC", TokenType::CHECK_NUMERIC},
{"-CHECK_COLUMN_NAMES", TokenType::CHECK_COLUMN_NAMES}};

class LogicToken {
Expand Down
4 changes: 4 additions & 0 deletions test/test_runner/test_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ TestStatement* TestParser::extractStatement(TestStatement* statement,
statement->checkOutputOrder = true;
break;
}
case TokenType::CHECK_NUMERIC: {
statement->checkNumeric = true;
break;
}
case TokenType::ENUMERATE: {
statement->enumerate = true;
break;
Expand Down

0 comments on commit 349f906

Please sign in to comment.