summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--test/feh.t (renamed from test/test.pl)2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 53a1b5d..f348d57 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ all:
@${MAKE} -C src
test: all
- mandoc -Tlint man/*
- perl test/test.pl ${PACKAGE} ${VERSION}
+ @mandoc -Tlint man/*
+ @PACKAGE=${PACKAGE} VERSION=${VERSION} prove test
install: install-man install-doc install-bin install-font install-img
diff --git a/test/test.pl b/test/feh.t
index 4b18ccc..2db0db0 100644
--- a/test/test.pl
+++ b/test/feh.t
@@ -7,7 +7,7 @@ use Test::Command tests => 48;
my $feh = 'src/feh';
my $images = 'test/ok.* test/fail.*';
-my ($feh_name, $feh_version) = @ARGV;
+my ($feh_name, $feh_version) = @ENV{'PACKAGE', 'VERSION'};
my $re_warning =
qr{${feh_name} WARNING: test/fail\.... \- No Imlib2 loader for that file format\n};