tests: Name all tests ".t.pl"

This way, everything (for example, common.inc) can have its proper
".pl" ending and syntax highlighting works properly in every editor.
This commit is contained in:
Jakob Unterwurzacher 2014-12-08 17:39:10 +01:00
parent 40531024c8
commit 1c5c75c44f
4 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ ACLOCAL_AMFLAGS = -I m4
.PHONY: test
test:
perl -MTest::Harness -e '$$Test::Harness::verbose=0; runtests @ARGV;' tests/*.pl
perl -MTest::Harness -e '$$Test::Harness::verbose=0; runtests @ARGV;' tests/*.t.pl
.PHONY: test-verbose
test-verbose:
perl -MTest::Harness -e '$$Test::Harness::verbose=1; runtests @ARGV;' tests/*.pl
perl -MTest::Harness -e '$$Test::Harness::verbose=1; runtests @ARGV;' tests/*.t.pl

0
tests/common.inc → tests/common.pl Normal file → Executable file
View File

2
tests/normal.pl → tests/normal.t.pl Normal file → Executable file
View File

@ -8,7 +8,7 @@ use File::Copy;
use File::Temp;
use IO::Handle;
require("tests/common.inc");
require("tests/common.pl");
my $tempDir = $ENV{'TMPDIR'} || "/tmp";

View File

@ -9,7 +9,7 @@ use File::Temp;
use IO::Handle;
use Errno qw(EROFS);
require("tests/common.inc");
require("tests/common.pl");
my $tempDir = $ENV{'TMPDIR'} || "/tmp";