Add target test-compile to all Makefile to allow tests in plugin folders

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
pull/2703/head
Norbert Heusser 3 years ago
parent 120bfb33b9
commit 170cd85cec

@ -83,9 +83,11 @@ check : test
test-compile: mosquitto lib
$(MAKE) -C test test-compile
$(MAKE) -C plugins test-compile
test : mosquitto lib apps
$(MAKE) -C test test
$(MAKE) -C plugins test
ptest : mosquitto
$(MAKE) -C test ptest

@ -3,7 +3,7 @@ DIRS= \
examples \
persist-sqlite
.PHONY : all binary check clean reallyclean test install uninstall
.PHONY : all binary check clean reallyclean test test-compile install uninstall
all :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d}; done
@ -17,6 +17,9 @@ clean :
reallyclean :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d} $@; done
test-compile :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d} $@; done
check : test
test :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d} $@; done

@ -1,7 +1,7 @@
R=../..
include ${R}/config.mk
.PHONY : all binary check clean reallyclean test install uninstall
.PHONY : all binary check clean reallyclean test test-compile install uninstall
PLUGIN_NAME=mosquitto_dynamic_security
LOCAL_CPPFLAGS=-I${R}/lib/ -I${R}/src/ -I${R}/plugins/common -DWITH_CJSON -DWITH_TLS
@ -115,8 +115,10 @@ reallyclean : clean
clean:
-rm -f *.o ${PLUGIN_NAME}.so *.gcda *.gcno
test-compile:
check: test
test:
test: test-compile
install: all
ifeq ($(WITH_CJSON),yes)

@ -16,7 +16,7 @@ DIRS= \
topic-modification \
wildcard-temp
.PHONY : all binary check clean reallyclean test install uninstall
.PHONY : all binary check clean reallyclean test test-compile install uninstall
all :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d}; done
@ -30,8 +30,10 @@ clean :
reallyclean :
set -e; for d in ${DIRS}; do $(MAKE) -C $${d} $@; done
test-compile:
check : test
test :
test: test-compile
set -e; for d in ${DIRS}; do $(MAKE) -C $${d} $@; done
install :

@ -1,7 +1,7 @@
R=../..
include ${R}/config.mk
.PHONY : all binary check clean reallyclean test install uninstall
.PHONY : all binary check clean reallyclean test test-compile install uninstall
PLUGIN_NAME=mosquitto_persist_sqlite
LOCAL_CPPFLAGS=-I${R}/src/
@ -60,8 +60,10 @@ reallyclean : clean
clean:
-rm -f *.o ${PLUGIN_NAME}.so *.gcda *.gcno
check: test
test:
test-compile:
check : test
test: test-compile
install: all
ifeq ($(WITH_SQLITE),yes)

@ -10,20 +10,21 @@ test-compile:
$(MAKE) -C client test-compile
$(MAKE) -C lib test-compile
$(MAKE) -C unit test-compile
$(MAKE) -C apps test-compile
check : test
test : utest
$(MAKE) -C apps test
$(MAKE) -C broker test
$(MAKE) -C lib test
$(MAKE) -C client test
$(MAKE) -C apps test
ptest : utest
$(MAKE) -C apps ptest
$(MAKE) -C broker ptest
$(MAKE) -C lib ptest
$(MAKE) -C client ptest
$(MAKE) -C apps ptest
utest :
$(MAKE) -C unit test
@ -32,5 +33,6 @@ reallyclean : clean
clean :
$(MAKE) -C lib clean
$(MAKE) -C broker clean
$(MAKE) -C client clean
$(MAKE) -C unit clean
$(MAKE) -C apps clean

@ -8,6 +8,8 @@ all :
check : test
test-compile:
test :
$(MAKE) -C db_dump test
$(MAKE) -C ctrl test

Loading…
Cancel
Save