diff --git a/Makefile b/Makefile index 53a1b5d8fa6a4667f64c5d0feaf9b583c869ea1e..f348d57e119f14d35f9fef191adf8924a2248186 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 similarity index 97% rename from test/test.pl rename to test/feh.t index 4b18ccc06d2700bad3c22f5a4444f20950ab784b..2db0db0ac2b8d4381fb44e9adb98d591bf7d0eb8 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};