From 1c5c75c44fd4ad83535280858c6be7a64b172f22 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 8 Dec 2014 17:39:10 +0100 Subject: [PATCH] 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. --- Makefile.am | 4 ++-- tests/{common.inc => common.pl} | 0 tests/{normal.pl => normal.t.pl} | 2 +- tests/{reverse.pl => reverse.t.pl} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename tests/{common.inc => common.pl} (100%) mode change 100644 => 100755 rename tests/{normal.pl => normal.t.pl} (99%) mode change 100644 => 100755 rename tests/{reverse.pl => reverse.t.pl} (99%) diff --git a/Makefile.am b/Makefile.am index 020fa7a..6689589 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/tests/common.inc b/tests/common.pl old mode 100644 new mode 100755 similarity index 100% rename from tests/common.inc rename to tests/common.pl diff --git a/tests/normal.pl b/tests/normal.t.pl old mode 100644 new mode 100755 similarity index 99% rename from tests/normal.pl rename to tests/normal.t.pl index 572ef03..7f0d779 --- a/tests/normal.pl +++ b/tests/normal.t.pl @@ -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"; diff --git a/tests/reverse.pl b/tests/reverse.t.pl similarity index 99% rename from tests/reverse.pl rename to tests/reverse.t.pl index 2c073e8..35a98b8 100755 --- a/tests/reverse.pl +++ b/tests/reverse.t.pl @@ -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";