1N/A# This test puts MakeMaker through the paces of a basic perl module 1N/A# build, test and installation of the Big::Fat::Dummy module. 1N/A chdir 't' if -d 't'; 1N/A# 'make disttest' sets a bunch of environment variables which interfere 1N/Aok( chdir('Big-Dummy'), "chdir'd to Big-Dummy" ) ||
1N/A# -M is flakey on VMS 1N/A # Supress 'make manifest' noise 1N/A ok( -e 'MANIFEST', 'make manifest created a MANIFEST' ); 1N/A ok( -s 'MANIFEST', ' its not empty' ); 1N/A qr{^\s*<AUTHOR>Michael G Schwern <schwern\@pobox.com></AUTHOR>}m, 1N/Alike( $ppd_html, qr{^\s*<DEPENDENCY NAME="strict" VERSION="0,0,0,0" />}m, 1N/Alike( $ppd_html, qr{^\s*<OS NAME="$Config{osname}" />}m, 1N/Alike( $ppd_html, qr{^\s*<ARCHITECTURE NAME="$Config{archname}" />}m, 1N/Alike( $ppd_html, qr{^\s*<CODEBASE HREF="" />}m, ' <CODEBASE>'); 1N/Alike( $ppd_html, qr{^\s*</SOFTPKG>}m, ' </SOFTPKG>'); 1N/Amy $test_out = run("$make test"); 1N/Amy $make_test_verbose = make_macro($make, 'test', TEST_VERBOSE => 1); 1N/A$test_out = run("$make_test_verbose"); 1N/Amy $install_out = run("$make install"); 1N/Alike( $install_out, qr/^Installing /m ); 1N/Alike( $install_out, qr/^Writing /m ); 1N/A # do it case-insensitive for non-case preserving OSs 1N/A $files{lc $_} = $File::Find::name; 1N/A skip "VMS install targets do not preserve $(PREFIX)", 8 if $Is_VMS; 1N/A $install_out = run("$make install PREFIX=elsewhere"); 1N/A like( $install_out, qr/^Installing /m ); 1N/A like( $install_out, qr/^Writing /m ); 1N/A find( sub { $files{$_} = $File::Find::name; }, 'elsewhere' ); 1N/A skip "VMS install targets do not preserve $(DESTDIR)", 10 if $Is_VMS; 1N/A $install_out = run("$make install PREFIX= DESTDIR=other"); 1N/A like( $install_out, qr/^Installing /m ); 1N/A like( $install_out, qr/^Writing /m ); 1N/A $files{$_} = $File::Find::name; 1N/A unlike(<PERLLOCAL>, qr/other/, 'DESTDIR should not appear in perllocal'); 1N/A# TODO not available in the min version of Test::Harness we require 1N/A# ok( open(PACKLIST, $files{'.packlist'} ) ) || 1N/A skip "VMS install targets do not preserve $(PREFIX)", 9 if $Is_VMS; 1N/A $install_out = run("$make install PREFIX=elsewhere DESTDIR=other/"); 1N/A like( $install_out, qr/^Installing /m ); 1N/A like( $install_out, qr/^Writing /m ); 1N/Amy $dist_test_out = run("$make disttest"); 1N/Ause ExtUtils::Manifest qw(maniread); 1N/Amy $manifest = maniread(); 1N/A# Test if MANIFEST is read-only. 1N/A diag($metafile_out); 1N/A 'init_dirscan skipped distdir') || 1N/A# I know we'll get ignored errors from make here, that's ok. 1N/A# Send STDERR off to oblivion.