aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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