Make every test optional

This commit is contained in:
Pierre Pronchery 2020-01-10 23:11:41 +01:00
parent 15cb1a5316
commit e3794aa528
2 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ dist=Makefile,COPYING,README.md,TODO,config.h,config.sh
#targets
[tests]
type=command
command=cd tests && (if [ -n "$(OBJDIR)" ]; then $(MAKE) OBJDIR="$(OBJDIR)tests/" "$(OBJDIR)tests/fixme.log"; else $(MAKE) fixme.log; fi)
command=cd tests && (if [ -n "$(OBJDIR)" ]; then $(MAKE) OBJDIR="$(OBJDIR)tests/" "$(OBJDIR)tests/clint.log" "$(OBJDIR)tests/fixme.log" "$(OBJDIR)tests/tests.log" "$(OBJDIR)tests/xmllint.log"; else $(MAKE) clint.log fixme.log tests.log xmllint.log; fi)
depends=all
enabled=0
phony=1

View File

@ -1,4 +1,4 @@
targets=clint.log,fixme.log,htmllint.log,plugins,vfs,tests.log,xmllint.log
targets=clint.log,fixme.log,htmllint.log,plugins,tests.log,vfs,xmllint.log
cppflags_force=-I ../include
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
@ -10,6 +10,7 @@ dist=Makefile,clint.sh,embedded.sh,fixme.sh,htmllint.sh,pkgconfig.sh,tests.sh,xm
[clint.log]
type=script
script=./clint.sh
enabled=0
depends=clint.sh
[fixme.log]
@ -21,6 +22,7 @@ depends=fixme.sh
[htmllint.log]
type=script
script=./htmllint.sh
enabled=0
depends=htmllint.sh
[plugins]
@ -31,6 +33,7 @@ ldflags=-ldl
[tests.log]
type=script
script=./tests.sh
enabled=0
depends=pkgconfig.sh,$(OBJDIR)plugins$(EXEEXT),$(OBJDIR)vfs$(EXEEXT),tests.sh
[vfs]
@ -41,4 +44,5 @@ sources=vfs.c
[xmllint.log]
type=script
script=./xmllint.sh
enabled=0
depends=xmllint.sh