
session.c:session_setup_filters : fixed memory leak hintparser.c: added token_free for HINT_TOKENs and fixed a few memory leaks. mysql_client_server_protocol.h: added mysql_protocol_done which frees memory blocks pointed to by protocol members. Those can't be freed in dcb.c because dcb.c doesn't know about protocol's members. mysql_backend.c:gw_backend_close: fixed memory leak mysql_client.c: gw_client_close: fixed memory leak mysql_common.c: added implementation of mysql_protocol_done :protocol_archive_srv_command: tried to fix memory leak. Some memory is still leaking according to valgrind. Removed use of uninitialized local variable len. readwritesplit.c: Fix to bug #469, http://bugs.skysql.com/show_bug.cgi?id=469, rwsplit counts every connection twice in master - counnection counts leak execute_sescmd_in_backend: fixed a memory leak - visible only in DEBUG=Y build. readwritesplit/test/makefile: added target for hints tests
38 lines
982 B
Makefile
38 lines
982 B
Makefile
# cleantests - clean local and subdirectories' tests
|
|
# buildtests - build all local and subdirectories' tests
|
|
# runtests - run all local tests
|
|
# testall - clean, build and run local and subdirectories' tests
|
|
|
|
include ../../../../../build_gateway.inc
|
|
include $(ROOT_PATH)/makefile.inc
|
|
include $(ROOT_PATH)/test.inc
|
|
|
|
CC=cc
|
|
TESTLOG := $(shell pwd)/testrwsplit.log
|
|
RET := -1
|
|
|
|
cleantests:
|
|
- $(DEL) *.o
|
|
- $(DEL) *~
|
|
-$(MAKE) -C test_hints cleantests
|
|
|
|
|
|
testall:
|
|
-$(MAKE) cleantests
|
|
-$(MAKE) DEBUG=Y buildtests
|
|
-$(MAKE) runtests
|
|
|
|
buildtests:
|
|
|
|
|
|
runtests:
|
|
@echo "" > $(TESTLOG)
|
|
@echo "-------------------------------" >> $(TESTLOG)
|
|
@echo $(shell date) >> $(TESTLOG)
|
|
@echo "Test Read/Write split router" >> $(TESTLOG)
|
|
@echo "-------------------------------" >> $(TESTLOG)
|
|
./rwsplit.sh $(TESTLOG) $(THOST) $(TPORT_RW) $(TMASTER_ID) $(TUSER) $(TPWD)
|
|
@echo "" >> $(TESTLOG)
|
|
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
-$(MAKE) -C test_hints runtests
|