|
|
|
|
@ -81,7 +81,7 @@ all: tests
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
clean:
|
|
|
|
|
rm -f *-t galera_1_timeout_count galera_2_timeout_no_count aurora generate_set_session_csv set_testing-240.csv || true
|
|
|
|
|
rm -f *-t galera_1_timeout_count galera_2_timeout_no_count aurora generate_set_session_csv set_testing-240.csv clickhouse_php_conn-t || true
|
|
|
|
|
|
|
|
|
|
WITHGCOVVAR := $(shell echo $(WITHGCOV))
|
|
|
|
|
ifeq ($(WITHGCOVVAR),1)
|
|
|
|
|
@ -101,13 +101,17 @@ OPT=-O2 $(WGCOV) -Wl,--no-as-needed
|
|
|
|
|
debug: OPT=-O0 -DDEBUG -ggdb -Wl,--no-as-needed $(WGCOV) $(WASAN)
|
|
|
|
|
debug: tests
|
|
|
|
|
|
|
|
|
|
tests: $(patsubst %.cpp,%,$(wildcard *-t.cpp)) setparser_test reg_test_3504-change_user_libmariadb_helper reg_test_3504-change_user_libmysql_helper set_testing-240.csv test_clickhouse_server_libmysql
|
|
|
|
|
tests: $(patsubst %.cpp,%,$(wildcard *-t.cpp)) setparser_test reg_test_3504-change_user_libmariadb_helper reg_test_3504-change_user_libmysql_helper set_testing-240.csv test_clickhouse_server_libmysql clickhouse_php_conn-t
|
|
|
|
|
testgalera: galera_1_timeout_count galera_2_timeout_no_count
|
|
|
|
|
testaurora: aurora
|
|
|
|
|
|
|
|
|
|
set_testing-240.csv: generate_set_session_csv
|
|
|
|
|
./generate_set_session_csv > set_testing-240.csv
|
|
|
|
|
|
|
|
|
|
clickhouse_php_conn-t: clickhouse_php_conn-t.php
|
|
|
|
|
cp clickhouse_php_conn-t.php clickhouse_php_conn-t
|
|
|
|
|
chmod +x clickhouse_php_conn-t
|
|
|
|
|
|
|
|
|
|
%-t:%-t.cpp $(TAP_LIBDIR)/libtap.a
|
|
|
|
|
$(CXX) $^ $(INCLUDEDIRS) $(LDIRS) $(OPT) $(MYLIBS) -lpthread -ldl -std=c++11 -ltap $(STATIC_LIBS) -o $@
|
|
|
|
|
|
|
|
|
|
|