Skip to content

Commit f880fcc

Browse files
committed
Add initial version of TAP test for SET parser parity
Adds a new TAP tests that checks the parity between the previous REGEX based SET parser and the new SQL SET parser.
1 parent 1249ef0 commit f880fcc

File tree

2 files changed

+603
-0
lines changed

2 files changed

+603
-0
lines changed

test/tap/tests/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ tests: tests-cpp \
223223
test_ssl_fast_forward-3_libmysql-t \
224224
setparser_test2 setparser_test2-t \
225225
setparser_test3 setparser_test3-t \
226+
test_set_parser_parity-t \
226227
set_testing-240.csv \
227228
test_clickhouse_server_libmysql-t \
228229
reg_test_stmt_resultset_err_no_rows_libmysql-t \
@@ -315,6 +316,11 @@ setparser_test2-t: setparser_test2
315316
setparser_test2: setparser_test2.cpp $(TAP_LDIR)/libtap.so $(PROXYSQL_LDIR)/MySQL_Set_Stmt_Parser.cpp setparser_test_common.h $(LIBPROXYSQLAR) $(LIBCOREDUMPERAR)
316317
$(CXX) $< -DEXCLUDE_TRACKING_VARAIABLES $(PROXYSQL_LDIR)/MySQL_Set_Stmt_Parser.cpp $(IDIRS) $(LDIRS) $(OPT) $(MYLIBS) $(LIBCOREDUMPERAR) -o $@
317318

319+
test_set_parser_parity-t: test_set_parser_parity.cpp $(TAP_LDIR)/libtap.so $(LIBPROXYSQLAR) $(LIBCOREDUMPERAR)
320+
$(CXX) $< -DEXCLUDE_TRACKING_VARAIABLES $(PROXYSQL_LDIR)/MySQL_Set_Stmt_Parser.cpp \
321+
$(PROXYSQL_LDIR)/MySQL_Variables_Utils.cpp $(PROXYSQL_LDIR)/MySQL_Session_Utils.cpp \
322+
$(PROXYSQL_PATH)/src/proxysql_global.cpp $(IDIRS) $(LDIRS) $(OPT) $(MYLIBS) $(LIBCOREDUMPERAR) -o $@
323+
318324
setparser_test3-t: setparser_test3
319325
ln -fs setparser_test3 setparser_test3-t
320326

0 commit comments

Comments
 (0)