use 'make test' rather than 'prove'
[gitmo/moose-dev-utils.git] / cpan-stable-smolder
index 87b3c6b..26ddd1c 100755 (executable)
@@ -132,7 +132,12 @@ sub _run_commands {
 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+/;