Subject: | PATCH for VMS |
Hello and thanks for Test::Manifest 1.22
The default/standard file system on VMS is ODS-2
http://en.wikipedia.org/wiki/Files-11
ODS-2 only supports one period in a filename.
http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_015.html
(also see perlport#VMS)
So to get the tests to run and pass on VMS I renamed the test files:
0.load.t => 0_load.t
1.get_test_files.t => 1_get_test_files.t
1.make_test_manifest.t => 1_make_test_manifest.t
99.pod.t => 99_pod.t
I made the required changes to the manifests and other test files that
contained the old filenames.
ODS-2 is also a versioned file system, so when unlinking files, all
versions must be unlinked.
I've attached a diff generated on VMS using gnu diff, but because by
default ODS-2 is not case sensitive you probably won't be able to apply
the patch without some editing.
I've not tested the patch on any other OS, but none of it is VMS
specific - it should not break any other OS and may help some?
Cheers,
Peter (Stig) Edwards
Subject: | vms.patch |
==== test-manifest-1_22/t/1_get_test_files.t#1 - test-manifest-1_22/t/1_get_test_files.t ====
--- t8271087190.tmp Thu Jan 3 09:16:21 2008
+++ test-manifest-1_22/t/1_get_test_files.t Thu Jan 3 09:13:12 2008
@@ -12,7 +12,7 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
my $expected = join " ", map { File::Spec->catfile( "t", $_ ) } qw(
- 0.load.t 1.get_test_files.t 1.make_test_manifest.t
+ 0_load.t 1_get_test_files.t 1_make_test_manifest.t
leading_space.t trailing_space.t
);
@@ -34,13 +34,15 @@
{
local $SIG{__WARN__} = sub { 1 };
-( unlink manifest_name() ) ?
+1 while (unlink manifest_name());
+
+( ! -e manifest_name() ) ?
pass( "test_manifest unlinked") :
fail( "test_manifest still around after unlink!");
my $string = get_t_files();
-ok( ! $string, "Nothing returned when test_manifest does not exist (scalar)" );
+ok( ! $string, "Nothing returned when test_manifest does not exist (scalar) '$string'" );
my @array = get_t_files();
@@ -53,13 +55,13 @@
copy( 'test_manifest_levels', manifest_name() );
my @expected = ( [] );
-$expected[1] = [ qw( 0.load.t 1.get_test_files.t pod_coverage.t) ];
-$expected[2] = [ qw( 0.load.t 1.get_test_files.t 1.make_test_manifest.t
+$expected[1] = [ qw( 0_load.t 1_get_test_files.t pod_coverage.t) ];
+$expected[2] = [ qw( 0_load.t 1_get_test_files.t 1_make_test_manifest.t
pod_coverage.t ) ];
-$expected[3] = [ qw( 0.load.t 1.get_test_files.t 1.make_test_manifest.t
+$expected[3] = [ qw( 0_load.t 1_get_test_files.t 1_make_test_manifest.t
leading_space.t pod_coverage.t trailing_space.t ) ];
-$expected[0] = [ qw( 0.load.t 1.get_test_files.t 1.make_test_manifest.t
- leading_space.t pod_coverage.t trailing_space.t 99.pod.t ) ];
+$expected[0] = [ qw( 0_load.t 1_get_test_files.t 1_make_test_manifest.t
+ leading_space.t pod_coverage.t trailing_space.t 99_pod.t ) ];
foreach my $level ( 0 .. 3 )
{
@@ -74,10 +76,10 @@
__END__
# this is a comment, then a blank line
-0.load.t
-1.get_test_files.t 1
-1.make_test_manifest.t 2
+0_load.t
+1_get_test_files.t 1
+1_make_test_manifest.t 2
leading_space.t 2.9
pod_coverage.t 1 # with a comment
trailing_space.t 3 # with a comment
-99.pod.t 3.1
+99_pod.t 3.1
==== test-manifest-1_22/t/1_make_test_manifest.t#1 - test-manifest-1_22/t/1_make_test_manifest.t ====
--- t8271087191.tmp Thu Jan 3 09:16:21 2008
+++ test-manifest-1_22/t/1_make_test_manifest.t Thu Jan 3 09:08:55 2008
@@ -4,9 +4,9 @@
use Test::Manifest qw(make_test_manifest);
-my $test_manifest = 't/test_manifest';
+my $test_manifest = File::Spec->catfile('t','test_manifest');
-unlink $test_manifest;
+1 while (unlink $test_manifest);
ok( ! -e $test_manifest, 'test_manifest does not exit' );
make_test_manifest();
==== test-manifest-1_22/t/include.t#1 - test-manifest-1_22/t/include.t ====
--- t8271087192.tmp Thu Jan 3 09:16:21 2008
+++ test-manifest-1_22/t/include.t Thu Jan 3 08:53:56 2008
@@ -17,9 +17,9 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
my @expected_tests = map { File::Spec->catfile( "t", $_ ) } qw(
- 0.load.t
- 99.pod.t
- 1.get_test_files.t
+ 0_load.t
+ 99_pod.t
+ 1_get_test_files.t
);
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
==== test-manifest-1_22/t/include_in_manifest.txt#1 - test-manifest-1_22/t/include_in_manifest.txt ====
--- t8271087193.tmp Thu Jan 3 09:16:21 2008
+++ test-manifest-1_22/t/include_in_manifest.txt Thu Jan 3 08:55:59 2008
@@ -1,2 +1,2 @@
-99.pod.t
-1.get_test_files.t
\ No newline at end of file
+99_pod.t
+1_get_test_files.t
\ No newline at end of file
==== test-manifest-1_22/test_manifest#1 - test-manifest-1_22/test_manifest. ====
--- t8271087194.tmp Thu Jan 3 09:16:22 2008
+++ test-manifest-1_22/test_manifest. Thu Jan 3 08:54:50 2008
@@ -1,7 +1,7 @@
# this is a comment, then a blank line
-0.load.t
-1.get_test_files.t
-1.make_test_manifest.t
+0_load.t
+1_get_test_files.t
+1_make_test_manifest.t
leading_space.t
trailing_space.t # comment at end of line
\ No newline at end of file
==== test-manifest-1_22/test_manifest_levels#1 - test-manifest-1_22/test_manifest_levels. ====
--- t8271087195.tmp Thu Jan 3 09:16:22 2008
+++ test-manifest-1_22/test_manifest_levels. Thu Jan 3 08:58:18 2008
@@ -1,9 +1,9 @@
# this is a comment, then a blank line
-0.load.t
-1.get_test_files.t 1
-1.make_test_manifest.t 2
+0_load.t
+1_get_test_files.t 1
+1_make_test_manifest.t 2
leading_space.t 2.9
pod_coverage.t 1 # with a comment
trailing_space.t 3 # with a comment
-99.pod.t 3.1
\ No newline at end of file
+99_pod.t 3.1
\ No newline at end of file
==== test-manifest-1_22/test_manifest_with_include#1 - test-manifest-1_22/test_manifest_with_include. ====
--- t8271087196.tmp Thu Jan 3 09:16:22 2008
+++ test-manifest-1_22/test_manifest_with_include. Thu Jan 3 09:11:17 2008
@@ -1,2 +1,2 @@
-0.load.t
+0_load.t
;include t/include_in_manifest.txt
\ No newline at end of file