Skip to content
Snippets Groups Projects
Commit 4830056a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

allow disabling shell tests

parent 5972a2ff
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@ APPPATH = /usr/bin
LIBPATH = /usr/lib
BINFOLDER = bin
 
RUN_TESTS ?= 1
# can be queued from version 4.2 via MAKEFLAGS sice there is the number of jobs as well
MAKE_PID := $(shell echo $$PPID)
JOB_FLAG := $(filter -j%, $(subst -j ,-j,$(shell ps T | grep "^\s*$(MAKE_PID).*$(MAKE)")))
......@@ -107,7 +109,7 @@ debug build-debug:
for dir in $(SUBDIRS_BINS); do \
cp $$dir/bin-debug/* $(addsuffix -debug, $(BINFOLDER)); \
done
if [ "$@" == "debug" ]; then for test in $(wildcard tests.*.sh); do \
if [ "$@" == "debug" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \
./$$test debug $(JOBS); \
done; fi
 
......@@ -133,7 +135,7 @@ release build-release:
for dir in $(SUBDIRS_BINS); do \
cp $$dir/bin-release/* $(addsuffix -release, $(BINFOLDER)); \
done
if [ "$@" == "release" ]; then for test in $(wildcard tests.*.sh); do \
if [ "$@" == "release" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \
./$$test debug $(JOBS); \
done; fi
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment