4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib/');
9 unshift @INC, 't/lib/';
17 use MakeMaker::Test::Utils;
18 use MakeMaker::Test::Setup::XS;
24 if( have_compiler() ) {
29 plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler";
32 my $Is_VMS = $^O eq 'VMS';
33 my $perl = which_perl();
35 # GNV logical interferes with testing
36 $ENV{'bin'} = '[.bin]' if $Is_VMS;
44 ok( setup_xs(), 'setup' );
47 chdir File::Spec->updir or die;
48 teardown_xs(), 'teardown' or die;
52 ok( chdir('XS-Test'), "chdir'd to XS-Test" ) ||
53 diag("chdir failed: $!");
55 my @mpl_out = run(qq{$perl Makefile.PL});
57 cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) ||
60 my $make = make_run();
61 my $make_out = run("$make");
62 is( $?, 0, ' make exited normally' ) ||
65 my $test_out = run("$make");
66 is( $?, 0, ' make test exited normally' ) ||