sub _run_tests {
my $output;
- run3 [ qw( prove -br ) ], undef, \$output, \$output;
+ if ( -f "Build.PL" ) {
+ run3 [ qw( ./Build test ) ], undef, \$output, \$output;
+ }
+ else {
+ run3 [ qw( make test ) ], undef, \$output, \$output;
+ }
my $passed = $output =~ /Result: PASS/;
my $warned = $output =~ /at .+ line \d+/;