Fix the execution of tests

This commit is contained in:
Christophe de Dinechin 2018-05-17 14:30:19 +02:00
parent 261186169a
commit b49f74f58b
2 changed files with 2 additions and 4 deletions

View File

@ -29,12 +29,10 @@ HDR_INSTALL= \
PREFIX_LIB=$(PREFIX)lib/make-it-quick/config/
LIB_INSTALL=$(wildcard config/check*.c)
TESTS=example/
# Include the makefile rules with special BUILD path
MIQ=./
include $(MIQ)rules.mk
TESTS=example/
config.local-setup.mk:
$(PRINT_GENERATE) echo > $@ CONFIG_SOURCES=$(PREFIX_LIB)

View File

@ -541,7 +541,7 @@ product.test: .product
%.c.test %.cpp.test: $(MIQ_OUTPRODS)
$(PRINT_TEST) $(MIQ_BUILDTEST) && $(MIQ_RUNTEST)
%/.test:
+$(PRINT_TEST) cd $* && $(MAKE) test
+$(PRINT_TEST) cd $* && $(MIQ_RECURSE) RUN_TESTS=yes .build
#------------------------------------------------------------------------------