diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-29 15:33:19 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-29 15:33:19 +0000 |
commit | 1f6c91edf2c151ed2193ff9d3b2ac33d4db604fd (patch) | |
tree | 2d93243c2e29966e56f27077437a62f35ef6b88e /lib | |
parent | 7696928986f501d3d6879c8adfe416998c3cd6ea (diff) | |
download | perl-1f6c91edf2c151ed2193ff9d3b2ac33d4db604fd.tar.gz |
Retract ExtUtils/t/basic.t until it works.
p4raw-id: //depot/perl@15604
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExtUtils/t/basic.t | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/lib/ExtUtils/t/basic.t b/lib/ExtUtils/t/basic.t deleted file mode 100644 index 95280ed590..0000000000 --- a/lib/ExtUtils/t/basic.t +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/perl -w - -# This test puts MakeMaker through the paces of a basic perl module -# build, test and installation of the Big::Fat::Dummy module. - -BEGIN { - if( $ENV{PERL_CORE} ) { - chdir 't' if -d 't'; - @INC = ('../lib', 'lib'); - } - else { - unshift @INC, 't/lib'; - } -} -$ENV{PERL_CORE} ? chdir '../lib/ExtUtils/t' : chdir 't'; - -use strict; -use Test::More tests => 15; -use MakeMaker::Test::Utils; -use File::Spec; -use TieOut; - -my $perl = which_perl; -perl_lib; - -$| = 1; - -ok( chdir 'Big-Fat-Dummy', "chdir'd to Big-Fat-Dummy" ) || - diag("chdir failed: $!"); - -my @mpl_out = `$perl Makefile.PL PREFIX=dummy-install`; - -cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) || - diag(@mpl_out); - -my $makefile = makefile_name(); -ok( grep(/^Writing $makefile for Big::Fat::Dummy/, - @mpl_out) == 1, - 'Makefile.PL output looks right'); - -ok( grep(/^Current package is: main$/, - @mpl_out) == 1, - 'Makefile.PL run in package main'); - -ok( -e $makefile, 'Makefile exists' ); - -# -M is flakey on VMS. -my $mtime = (stat($makefile))[9]; -ok( ($^T - $mtime) <= 0, ' its been touched' ); - -END { unlink makefile_name(), makefile_backup() } - -# Supress 'make manifest' noise -open(SAVERR, ">&STDERR") || die $!; -close(STDERR); -my $make = make_run(); -my $manifest_out = `$make manifest`; -ok( -e 'MANIFEST', 'make manifest created a MANIFEST' ); -ok( -s 'MANIFEST', ' its not empty' ); -open(STDERR, ">&SAVERR") || die $!; - -END { unlink 'MANIFEST'; } - -my $test_out = `$make test`; -like( $test_out, qr/All tests successful/, 'make test' ); -is( $?, 0 ); - -# Test 'make test TEST_VERBOSE=1' -my $make_test_verbose = make_macro($make, 'test', TEST_VERBOSE => 1); -$test_out = `$make_test_verbose`; -like( $test_out, qr/ok \d+ - TEST_VERBOSE/, 'TEST_VERBOSE' ); -like( $test_out, qr/All tests successful/, ' successful' ); -is( $?, 0 ); - -my $dist_test_out = `$make disttest`; -is( $?, 0, 'disttest' ) || diag($dist_test_out); - -my $realclean_out = `$make realclean`; -is( $?, 0, 'realclean' ) || diag($realclean_out); - -close SAVERR; |