Register a "tests" target

This commit is contained in:
Pierre Pronchery 2020-02-23 20:40:22 +01:00
parent e403c0bf04
commit d161fcc54d
2 changed files with 12 additions and 0 deletions

View File

@ -3,8 +3,17 @@ version=0.0.2
config=ent,h,sh
subdirs=data,doc,include,src,tests,tools
targets=tests
dist=COPYING,Makefile,config.ent,config.h,config.sh
#targets
[tests]
type=command
command=cd tests && (if [ -n "$(OBJDIR)" ]; then $(MAKE) OBJDIR="$(OBJDIR)tests/" "$(OBJDIR)tests/clint.log" "$(OBJDIR)tests/fixme.log" "$(OBJDIR)tests/pylint.log" "$(OBJDIR)tests/shlint.log" "$(OBJDIR)tests/tests.log"; else $(MAKE) clint.log fixme.log pylint.log shlint.log tests.log; fi)
depends=all
enabled=0
phony=1
#dist
[COPYING]
install=$(PREFIX)/share/doc/$(PACKAGE)

View File

@ -33,13 +33,16 @@ depends=sqlite3.sql
type=script
script=./pylint.sh
depends=pylint.sh
enabled=0
[shlint.log]
type=script
script=./shlint.sh
depends=shlint.sh
enabled=0
[tests.log]
type=script
script=./tests.sh
depends=pkgconfig.sh,python.sh,$(OBJDIR)sqlite3$(SOEXT),tests.sh
enabled=0