From: Jarkko Hietaniemi Date: Fri, 29 Mar 2002 15:33:19 +0000 (+0000) Subject: Retract ExtUtils/t/basic.t until it works. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f6c91edf2c151ed2193ff9d3b2ac33d4db604fd;p=p5sagit%2Fp5-mst-13.2.git Retract ExtUtils/t/basic.t until it works. p4raw-id: //depot/perl@15604 --- diff --git a/MANIFEST b/MANIFEST index 68b8b1c..0048a9a 100644 --- a/MANIFEST +++ b/MANIFEST @@ -963,7 +963,6 @@ lib/ExtUtils/Packlist.pm Manipulates .packlist files lib/ExtUtils/t/Big-Fat-Dummy/Makefile.PL MakeMaker dummy module lib/ExtUtils/t/Big-Fat-Dummy/lib/Big/Fat/Dummy.pm MakeMaker dummy module lib/ExtUtils/t/Big-Fat-Dummy/t/compile.t MakeMaker dummy module -lib/ExtUtils/t/basic.t See if MakeMaker can build a module lib/ExtUtils/t/Command.t See if ExtUtils::Command works (Win32 only) lib/ExtUtils/t/Constant.t See if ExtUtils::Constant works lib/ExtUtils/t/Embed.t See if ExtUtils::Embed and embedding works diff --git a/lib/ExtUtils/t/basic.t b/lib/ExtUtils/t/basic.t deleted file mode 100644 index 95280ed..0000000 --- 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;