
Every test/makefile have the following targets: 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 Tests for directory random_dir are always in its subdirectory, in this case in random_dir/test . If random_dir has subdirectories with tests, random_dir/child_dir, for example, tests of child_dir can be started from random_dir/test/makefile where make -C child_dir/test <test target> is called. See MAXSCALE_HOME/test/README for further information.
31 lines
790 B
Makefile
31 lines
790 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 ../../makefile.inc
|
|
|
|
CC=cc
|
|
TESTLOG := $(shell pwd)/testutils.log
|
|
|
|
testall:
|
|
$(MAKE) cleantests
|
|
$(MAKE) buildtests
|
|
$(MAKE) runtests
|
|
@echo "No subdirectories to test" >> $(TESTLOG)
|
|
|
|
cleantests:
|
|
$(DEL) *~
|
|
|
|
buildtests:
|
|
@echo "Nothing to build here so far" >> $(TESTLOG)
|
|
|
|
runtests:
|
|
@echo "" >> $(TESTLOG)
|
|
@echo "-------------------------------" >> $(TESTLOG)
|
|
@echo $(shell date) >> $(TESTLOG)
|
|
@echo "Test Utils" >> $(TESTLOG)
|
|
@echo "-------------------------------" >> $(TESTLOG)
|
|
@echo "Nothing to run here so far" >> $(TESTLOG)
|