Added read/write split router tests to a part of makefile structure.

This commit is contained in:
VilhoRaatikka
2014-04-01 14:11:48 -07:00
parent 5e3ec5b3c8
commit ce5dc19ecc
6 changed files with 45 additions and 14 deletions

View File

@ -82,4 +82,20 @@ install: $(MODULES)
install -D $(MODULES) $(DEST)/MaxScale/modules install -D $(MODULES) $(DEST)/MaxScale/modules
(cd readwritesplit; make DEST=$(DEST) install) (cd readwritesplit; make DEST=$(DEST) install)
cleantests:
$(MAKE) -C readwritesplit/test cleantests
$(MAKE) -C test cleantests
buildtests:
$(MAKE) -C readwritesplit/test DEBUG=Y buildtests
$(MAKE) -C test DEBUG=Y buildtests
runtests:
$(MAKE) -C test runtests
$(MAKE) -C readwritesplit runtests
testall:
$(MAKE) -C test testall
$(MAKE) -C readwritesplit testall
include depend.mk include depend.mk

View File

@ -20,9 +20,9 @@
include ../../../../build_gateway.inc include ../../../../build_gateway.inc
LOGPATH := $(ROOT_PATH)/log_manager LOGPATH := $(ROOT_PATH)/log_manager
UTILSPATH := $(ROOT_PATH)/utils UTILSPATH := $(ROOT_PATH)/utils
QCLASSPATH := $(ROOT_PATH)/query_classifier QCLASSPATH := $(ROOT_PATH)/query_classifier
CC=cc CC=cc
CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include \ CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include \
@ -62,4 +62,17 @@ depend:
install: $(MODULES) install: $(MODULES)
install -D $(MODULES) $(DEST)/MaxScale/modules install -D $(MODULES) $(DEST)/MaxScale/modules
cleantests:
$(MAKE) -C test cleantest
testall:
$(MAKE) -C test testall
buildtests:
$(MAKE) -C test buildtests
runtests:
$(MAKE) -C runtests
include depend.mk include depend.mk

View File

@ -28,14 +28,9 @@ runtests:
@echo "" >> $(TESTLOG) @echo "" >> $(TESTLOG)
@echo "-------------------------------" >> $(TESTLOG) @echo "-------------------------------" >> $(TESTLOG)
@echo $(shell date) >> $(TESTLOG) @echo $(shell date) >> $(TESTLOG)
@echo "Test MaxScale R/W Split" >> $(TESTLOG) @echo "Test Read/Write split router" >> $(TESTLOG)
@echo "-------------------------------" >> $(TESTLOG) @echo "-------------------------------" >> $(TESTLOG)
./rwsplit.sh $(TESTLOG) $(THOST) $(TPORT_RW) $(TMASTER_ID) $(TUSER) $(TPWD) ./rwsplit.sh $(TESTLOG) $(THOST) $(TPORT_RW) $(TMASTER_ID) $(TUSER) $(TPWD)
@echo "" >> $(TESTLOG) @echo "" >> $(TESTLOG)
pesce:
@echo "fine"

View File

@ -39,8 +39,15 @@ testall:
@echo "-------------------------------" >> $(TESTLOG) @echo "-------------------------------" >> $(TESTLOG)
@echo $(shell date) >> $(TESTLOG) @echo $(shell date) >> $(TESTLOG)
@echo "Test Server Core" >> $(TESTLOG) @echo "Test Server Core" >> $(TESTLOG)
$(MAKE) -C $(ROOT_PATH)/server/core testall $(MAKE) -C $(ROOT_PATH)/server/core testall
@echo "Query Classifier PASSED" >> $(TESTLOG) @echo "Core PASSED" >> $(TESTLOG)
@echo "" >> $(TESTLOG)
@echo "-------------------------------" >> $(TESTLOG)
@echo $(shell date) >> $(TESTLOG)
@echo "Test Modules" >> $(TESTLOG)
$(MAKE) -C $(ROOT_PATH)/server/modules/routing testall
@killall maxscale
@echo "Routing modules PASSED" >> $(TESTLOG)
buildtests: buildtests:
@ -63,5 +70,4 @@ runtests:
@sleep 5 @sleep 5
@echo "MaxScale server PASSED" >> $(TESTLOG) @echo "MaxScale server PASSED" >> $(TESTLOG)
@echo "" >> $(TESTLOG) @echo "" >> $(TESTLOG)
@killall maxscale

View File

@ -57,7 +57,8 @@ MAXSCALE_HOME
log_manager, log_manager,
query_classifier, query_classifier,
server, server,
utils utils,
modules
| |
|- utils cleantests, buildtests, runtests, testall |- utils cleantests, buildtests, runtests, testall
| | | |