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();
41 ok( setup_xs(), 'setup' );
44 chdir File::Spec->updir or die;
45 teardown_xs(), 'teardown' or die;
49 ok( chdir('XS-Test'), "chdir'd to XS-Test" ) ||
50 diag("chdir failed: $!");
52 my @mpl_out = run(qq{$perl Makefile.PL});
54 cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) ||
57 my $make = make_run();
58 my $make_out = run("$make");
59 is( $?, 0, ' make exited normally' ) ||
62 my $test_out = run("$make");
63 is( $?, 0, ' make test exited normally' ) ||