diff --git a/test/tap/tests/Makefile b/test/tap/tests/Makefile index 9c1a47717..e759918e5 100644 --- a/test/tap/tests/Makefile +++ b/test/tap/tests/Makefile @@ -168,6 +168,9 @@ sh-%: cp $(patsubst sh-%,%,$@) $(patsubst sh-%.sh,%,$@) chmod +x $(patsubst sh-%.sh,%,$@) +anomaly_detection-t: anomaly_detection-t.cpp $(TAP_LDIR)/libtap.so + $(CXX) -DEXCLUDE_TRACKING_VARAIABLES $< ../tap/SQLite3_Server.cpp -I$(CLICKHOUSE_CPP_IDIR) $(IDIRS) $(LDIRS) -L$(CLICKHOUSE_CPP_LDIR) -L$(LZ4_LDIR) $(OPT) $(OBJ) $(MYLIBSJEMALLOC) $(MYLIBS) $(STATIC_LIBS) $(CLICKHOUSE_CPP_LDIR)/libclickhouse-cpp-lib.a $(CLICKHOUSE_CPP_PATH)/contrib/zstd/zstd/libzstdstatic.a $(LZ4_LDIR)/liblz4.a $(SQLITE3_LDIR)/../libsqlite_rembed.a -lscram -lusual -Wl,--allow-multiple-definition -o $@ + %-t: %-t.cpp $(TAP_LDIR)/libtap.so $(CXX) $< $(IDIRS) $(LDIRS) $(OPT) $(MYLIBS) $(STATIC_LIBS) -o $@ diff --git a/test/tap/tests/anomaly_detection-t.cpp b/test/tap/tests/anomaly_detection-t.cpp index 28092a8ce..bd73ae896 100644 --- a/test/tap/tests/anomaly_detection-t.cpp +++ b/test/tap/tests/anomaly_detection-t.cpp @@ -50,6 +50,17 @@ MYSQL* g_admin = NULL; class AI_Features_Manager; extern AI_Features_Manager *GloAI; +// Forward declarations +class MySQL_Session; +typedef struct _PtrSize_t PtrSize_t; + +// Stub for SQLite3_Server_session_handler - required by SQLite3_Server.cpp +// This test uses admin MySQL connection, so this is just a placeholder +void SQLite3_Server_session_handler(MySQL_Session* sess, void* _pa, PtrSize_t* pkt) { + // This is a stub - the actual test uses MySQL admin connection + // The SQLite3_Server.cpp sets this as a handler but we don't use it +} + // ============================================================================ // Helper Functions // ============================================================================