summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/porting/cmp_version.t
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/t/porting/cmp_version.t')
-rw-r--r--gnu/usr.bin/perl/t/porting/cmp_version.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/t/porting/cmp_version.t b/gnu/usr.bin/perl/t/porting/cmp_version.t
index 55b40035298..0573e2f81d1 100644
--- a/gnu/usr.bin/perl/t/porting/cmp_version.t
+++ b/gnu/usr.bin/perl/t/porting/cmp_version.t
@@ -9,14 +9,22 @@
# AND you should probably also nudge the upstream maintainer for
# example by filing a bug, with a patch attached and linking to
# the core change.
+#
+# This test script works by finding the last non-RC tagged commit,
+# which it assumes was the last release, then for each module:
+# if it has changed since that commit, but its version number is still the
+# same as that commit, report it.
+#
+# There's also a module exclusion list in Porting/cmpVERSION.pl.
BEGIN {
@INC = '..' if -f '../TestInit.pm';
+ @INC = '.' if -f './TestInit.pm';
}
use TestInit qw(T A); # T is chdir to the top level, A makes paths absolute
use strict;
-require 't/test.pl';
+require './t/test.pl';
my $source = find_git_or_skip('all');
chdir $source or die "Can't chdir to $source: $!";