4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib/');
9 unshift @INC, 't/lib/';
15 use MakeMaker::Test::Utils;
16 use MakeMaker::Test::Setup::XS;
21 if( have_compiler() ) {
25 plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler";
28 my $Is_VMS = $^O eq 'VMS';
29 my $perl = which_perl();
31 # GNV logical interferes with testing
32 $ENV{'bin'} = '[.bin]' if $Is_VMS;
40 ok( setup_xs(), 'setup' );
42 ok( chdir File::Spec->updir );
43 ok( teardown_xs(), 'teardown' );
46 ok( chdir('XS-Test'), "chdir'd to XS-Test" ) ||
47 diag("chdir failed: $!");
49 my @mpl_out = run(qq{$perl Makefile.PL});
51 cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) ||
54 my $make = make_run();
55 my $make_out = run("$make");
56 is( $?, 0, ' make exited normally' ) ||
59 my $test_out = run("$make");
60 is( $?, 0, ' make test exited normally' ) ||