From 963383c20e5fabb439952e636e6051d467c2db02 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 18 Nov 2020 23:51:48 +0100 Subject: [PATCH] Add a convenience rule for running tests --- project.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/project.conf b/project.conf index 9be51fd..9e196b9 100644 --- a/project.conf +++ b/project.conf @@ -4,4 +4,13 @@ vendor=Desktop config=h,sh subdirs=data,doc,include,po,src,tests +targets=tests dist=Makefile,config.h,config.sh + +#targets +[tests] +type=command +command=cd tests && (if [ -n "$(OBJDIR)" ]; then $(MAKE) OBJDIR="$(OBJDIR)tests/" "$(OBJDIR)tests/embedded.log"; else $(MAKE) embedded.log; fi) +depends=all +enabled=0 +phony=1