aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2010-01-01 22:50:53 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2010-01-01 22:50:53 +0000
commitcbdd86445bb77f0632c65aeeec57a39bf5dc5e83 (patch)
tree1b5910f4f12410991a8fe805c9468d3263b1307c
parent0493892a1e866c4357556737a3b805a458a7bbdf (diff)
downloadspec-helper-cbdd86445bb77f0632c65aeeec57a39bf5dc5e83.tar
spec-helper-cbdd86445bb77f0632c65aeeec57a39bf5dc5e83.tar.gz
spec-helper-cbdd86445bb77f0632c65aeeec57a39bf5dc5e83.tar.bz2
spec-helper-cbdd86445bb77f0632c65aeeec57a39bf5dc5e83.tar.xz
spec-helper-cbdd86445bb77f0632c65aeeec57a39bf5dc5e83.zip
handle tests properly
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ca0a553..552f6a5 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,11 @@ SCRIPT_FILES = clean_files clean_perl compress_files strip_and_check_elf_files \
fix_pamd gprintify remove_info_dir relink_symlinks fix_eol
BIN_FILES = macroszification
MACROS_FILES = spec-helper.macros
-FILES = Makefile NEWS README test.pl \
- $(SCRIPT_FILES) $(BIN_FILES) $(MACROS_FILES:=.in)
+TEST_FILES = t/*.t
+FILES = Makefile NEWS README \
+ $(SCRIPT_FILES) $(BIN_FILES) $(MACROS_FILES:=.in) $(TEST_FILES)
+
+TEST_VERBOSE = 0
bindir = /usr/bin
pkgdatadir = /usr/share/$(PACKAGE)
@@ -32,7 +35,7 @@ clean:
rm -f *~
test:
- perl test.pl
+ perl -MExtUtils::Command::MM -e "test_harness($(TEST_VERBOSE))" $(TEST_FILES)
# rules to build a local distribution