Added test for readwrite split: SET and TRANSACTION - COMMIT
Added test for readwrite split: SET and TRANSACTION - COMMIT
This commit is contained in:
39
server/modules/routing/readwritesplit/test/makefile
Normal file
39
server/modules/routing/readwritesplit/test/makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# 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 ../../../../makefile.inc
|
||||
|
||||
CC=cc
|
||||
TESTLOG := $(shell pwd)/testrouters.log
|
||||
RET := -1
|
||||
|
||||
cleantests:
|
||||
- $(DEL) *.o
|
||||
- $(DEL) *~
|
||||
|
||||
testall:
|
||||
$(MAKE) cleantests
|
||||
$(MAKE) DEBUG=Y buildtests
|
||||
$(MAKE) runtests
|
||||
|
||||
buildtests :
|
||||
|
||||
runtests:
|
||||
@echo "" >> $(TESTLOG)
|
||||
@echo "-------------------------------" >> $(TESTLOG)
|
||||
@echo $(shell date) >> $(TESTLOG)
|
||||
@echo "Test MaxScale R/W Split" >> $(TESTLOG)
|
||||
@echo "-------------------------------" >> $(TESTLOG)
|
||||
|
||||
ifeq ($(shell ./rwsplit.sh; echo $$?), 0)
|
||||
@echo "MaxScale core PASSED" >> $(TESTLOG)
|
||||
else
|
||||
@echo "MaxScale core FAILED" >> $(TESTLOG) ; exit 1
|
||||
endif
|
||||
@echo "" >> $(TESTLOG)
|
||||
|
||||
pesce:
|
||||
@echo "fine"
|
||||
Reference in New Issue
Block a user