From 0e4dfcf5d8df4346e0932f50a4db4f3e0c894a90 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Mon, 25 Jan 2010 20:33:00 +0000 Subject: test support --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 18750cb..e1ed2a1 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,10 @@ SCRIPT_FILES = add-user del-user add-service del-service create-file \ get-password create-ssl-certificate MACROS_FILES = rpm-helper.macros CONF_FILES = ssl +TEST_FILES = t/*.t FILES = AUTHORS README COPYING NEWS Makefile \ - $(SCRIPT_FILES) $(MACROS_FILES:=.in) $(CONF_FILES) + $(SCRIPT_FILES) $(MACROS_FILES:=.in) $(CONF_FILES) \ + $(TEST_FILES) pkgdatadir = /usr/share/$(PACKAGE) rpmmacrosdir = /etc/rpm/macros.d @@ -32,6 +34,9 @@ rpm-helper.macros: rpm-helper.macros.in clean: rm -f *~ +test: + perl -I t -MExtUtils::Command::MM -e "test_harness($(TEST_VERBOSE))" $(TEST_FILES) + # rules to build a local distribution localdist: cleandist dir localcopy tar -- cgit v1.2.1