summaryrefslogtreecommitdiff
path: root/lib/Test/Harness/t/version.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Test/Harness/t/version.t')
-rw-r--r--lib/Test/Harness/t/version.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Test/Harness/t/version.t b/lib/Test/Harness/t/version.t
new file mode 100644
index 0000000000..c67bcedf27
--- /dev/null
+++ b/lib/Test/Harness/t/version.t
@@ -0,0 +1,23 @@
+#!/usr/bin/perl -Tw
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
+use strict;
+
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok('Test::Harness');
+}
+
+my $ver = $ENV{HARNESS_VERSION} or die "HARNESS_VERSION not set";
+like( $ver, qr/^2.\d\d(_\d\d)?$/, "Version is proper format" );
+is( $ver, $Test::Harness::VERSION );