4 unshift @INC, 't/lib/';
11 use MakeMaker::Test::Utils;
12 use MakeMaker::Test::Setup::XS;
18 if( have_compiler() ) {
23 plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler";
26 my $Is_VMS = $^O eq 'VMS';
27 my $perl = which_perl();
35 ok( setup_xs(), 'setup' );
38 chdir File::Spec->updir or die;
39 teardown_xs(), 'teardown' or die;
43 ok( chdir('XS-Test'), "chdir'd to XS-Test" ) ||
44 diag("chdir failed: $!");
46 my @mpl_out = run(qq{$perl Makefile.PL});
48 cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) ||
51 my $make = make_run();
52 my $make_out = run("$make");
53 is( $?, 0, ' make exited normally' ) ||
56 my $test_out = run("$make");
57 is( $?, 0, ' make test exited normally' ) ||