1#!/usr/bin/perl -w 2 3use strict; 4use warnings; 5use Config; 6BEGIN { 7 chdir 't' or die "chdir(t): $!\n"; 8 unshift @INC, 'lib/'; 9} 10use MakeMaker::Test::Utils; 11use MakeMaker::Test::Setup::XS; 12use Test::More; 13 14plan skip_all => 'Dynaloading not enabled' if !$Config{usedl} or $Config{usedl} ne 'define'; 15plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler" 16 unless have_compiler(); 17my @tests = list_dynamic(); 18plan skip_all => "No tests" unless @tests; 19plan tests => 6 * @tests; 20my $perl = which_perl(); 21perl_lib; 22$| = 1; 23run_tests($perl, @$_) for @tests; 24