From 64f4b71d27bf989bbc3143769236f5afd9ef7deb Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 9 Mar 2018 02:03:51 +0100 Subject: [PATCH] Add a test for the "command" target type --- tests/command/Makefile.NetBSD | 23 +++++++++++++++++++++++ tests/command/project.conf | 6 ++++++ tests/project.conf | 4 ++-- tests/tests.sh | 1 + 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 tests/command/Makefile.NetBSD create mode 100644 tests/command/project.conf diff --git a/tests/command/Makefile.NetBSD b/tests/command/Makefile.NetBSD new file mode 100644 index 0000000..8461d9f --- /dev/null +++ b/tests/command/Makefile.NetBSD @@ -0,0 +1,23 @@ +TARGETS = target +RM = rm -f +LN = ln -f +MKDIR = mkdir -m 0755 -p +INSTALL = install + + +all: $(TARGETS) + +target: + $(MAKE) command + +clean: + $(RM) -- $(target_OBJS) + +distclean: clean + $(RM) -- $(TARGETS) + +install: all + +uninstall: + +.PHONY: all clean distclean install uninstall diff --git a/tests/command/project.conf b/tests/command/project.conf new file mode 100644 index 0000000..ccda43f --- /dev/null +++ b/tests/command/project.conf @@ -0,0 +1,6 @@ +targets=target +dist=Makefile + +[target] +type=command +command=$(MAKE) command diff --git a/tests/project.conf b/tests/project.conf index 8a33530..4a20347 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -1,5 +1,5 @@ targets=clint.log,coverage.log,fixme.log,htmllint.log,phplint.log,pylint.log,shlint.log,tests.log,xmllint.log -dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/project.conf,verilog/Makefile.NetBSD +dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,command/project.conf,command/Makefile.NetBSD,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/project.conf,verilog/Makefile.NetBSD [clint.log] type=script @@ -40,7 +40,7 @@ depends=../doc/scripts/shlint.sh [tests.log] type=script script=./tests.sh -depends=$(OBJDIR)../tools/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/project.conf,verilog/Makefile.NetBSD,tests.sh +depends=$(OBJDIR)../tools/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,command/project.conf,command/Makefile.NetBSD,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/project.conf,verilog/Makefile.NetBSD,tests.sh [xmllint.log] type=script diff --git a/tests/tests.sh b/tests/tests.sh index c7986d5..2fa5e86 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -92,6 +92,7 @@ _tests() _test "Linux" "library" || ret=2 _test "Linux" "libtool" || ret=2 _test "NetBSD" "binary" || ret=2 + _test "NetBSD" "command" || ret=2 _test "NetBSD" "include" || ret=2 _test "NetBSD" "library" || ret=2 _test "NetBSD" "libtool" || ret=2