Added test for readwrite split: SET and TRANSACTION - COMMIT

Added test for readwrite split: SET and TRANSACTION - COMMIT
This commit is contained in:
MassimilianoPinto
2014-03-24 15:15:21 +01:00
parent d660d3590d
commit f320c17834
3 changed files with 70 additions and 0 deletions

View 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"