[devscripts] 02/02: Add a test-installed target.

Benjamin Drung bdrung at moszumanska.debian.org
Thu Nov 21 15:54:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository devscripts.

commit 17a4313bc1c0d6ca34ef2ac02c202d8755c449d8
Author: Benjamin Drung <bdrung at debian.org>
Date:   Thu Nov 21 16:53:27 2013 +0100

    Add a test-installed target.
---
 Makefile             |    5 ++++-
 debian/tests/shunit2 |    6 +-----
 test/Makefile        |   11 ++++++++++-
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 2907a5a..0a11b0a 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,9 @@ online-test:
 
 test: test_test test_scripts
 
+test-installed:
+	$(MAKE) -C test/ $@
+
 install: all install_scripts
 	cp -a $(PERL_MODULES) $(DESTDIR)$(PERLMOD_DIR)
 	cp $(EXAMPLES) $(DESTDIR)$(EXAMPLES_DIR)
@@ -61,4 +64,4 @@ test_scripts:
 install_scripts:
 	$(MAKE) -C scripts/ install DESTDIR=$(DESTDIR)
 
-.PHONY: online-test test
+.PHONY: online-test test test-installed
diff --git a/debian/tests/shunit2 b/debian/tests/shunit2
index c577fef..9dfbd0a 100755
--- a/debian/tests/shunit2
+++ b/debian/tests/shunit2
@@ -1,8 +1,4 @@
 #!/bin/sh
 set -e
 
-test/test_annotate-output --installed
-test/test_checkbashisms --installed
-test/test_dd-list --installed
-test/test_debchange --installed
-test/test_licensecheck --installed
+make test-installed
diff --git a/test/Makefile b/test/Makefile
index 473c68d..e1d2def 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -7,7 +7,16 @@ test:
 	./test_licensecheck
 	./test_uscan
 
+test-installed:
+	./test_annotate-output --installed
+	./test_checkbashisms --installed
+	./test_dd-list --installed
+	./test_debchange --installed
+	./test_debdiff --installed
+	./test_licensecheck --installed
+	./test_uscan --installed
+
 online-test:
 	./test_uscan_online
 
-.PHONY: test online-test
+.PHONY: test test-installed online-test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list