bug 2628: fixing test script to deal with DESTDIR in Makefile.PL
authorAndrew Moore <andrew.moore@liblime.com>
Fri, 19 Sep 2008 15:42:54 +0000 (10:42 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 26 Sep 2008 14:08:35 +0000 (09:08 -0500)
Recently, there were changes to the Makefile.PL to make it install in a
DESTDIR that the OS (debian) may choose. This broke the test suite.
Since we're not installing the stuff in the t/ directory, we need to
ignore the DESTDIR specifiation before we write the test-config.txt.
So, this patch adds a call to the _strip_destdir function for all
directories written to the t/test-config.txt file.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>

Makefile.PL

index 02fd055..381a1c2 100644 (file)
@@ -1587,7 +1587,7 @@ sub postamble {
 
             # these directories will be relocated to the 't' directory
             foreach my $dirname ( keys %$target_directories ) {
-                my $dir = $target_directories->{$dirname};
+                my $dir = main::_strip_destdir( $target_directories->{$dirname} );
                 if ( exists $test_suite_override_dirs{$dirname} ) {
                     $dir = main::get_test_dir($dirname);
                 }