From 3717d3046c836f9c65dc1b7293134f56aea9e84c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 6 May 2010 00:43:16 +0200 Subject: [PATCH] Use prove for tests. Might be a bit ugly right now... hm. --- Makefile | 4 ++-- test/{test.pl => feh.t} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename test/{test.pl => feh.t} (97%) 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 similarity index 97% rename from test/test.pl rename to 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}; -- GitLab