Added structure which can be cloned for multiple test cases.

This commit is contained in:
VilhoRaatikka
2014-03-25 23:19:24 +02:00
parent a137196de0
commit df02926321
3 changed files with 35 additions and 12 deletions

View File

@ -3,8 +3,8 @@
# runtests - run all local tests
# testall - clean, build and run local and subdirectories' tests
include ../../../../build_gateway.inc
include ../../../../makefile.inc
include ../../../../../build_gateway.inc
include ../../../../../makefile.inc
CC=cc
TESTLOG := $(shell pwd)/testrouters.log
@ -28,7 +28,7 @@ runtests:
@echo "Test MaxScale R/W Split" >> $(TESTLOG)
@echo "-------------------------------" >> $(TESTLOG)
ifeq ($(shell ./rwsplit.sh; echo $$?), 0)
ifeq ($(shell ./rwsplit.sh $(TESTLOG) 127.0.0.1 4006 maxuser maxpwd ; echo $$?), 0)
@echo "MaxScale core PASSED" >> $(TESTLOG)
else
@echo "MaxScale core FAILED" >> $(TESTLOG) ; exit 1