FIX: travis ci test failure detection
@@ -17,10 +17,16 @@ if ($script_type eq "big") {
# common engine test script : ./t
if (grep $_ eq $engine_name, @engine_list) {
- system("prove $opt - < $srcdir/t/tlist/engine_$engine_name\_$ext\.txt :: $engine_name");
+ my $returnCode = system("prove $opt - < $srcdir/t/tlist/engine_$engine_name\_$ext\.txt :: $engine_name");
+ if ($returnCode != 0) {
+ exit(1);
+ }
} elsif ("$engine_name" eq "") {
# default engine test
- system("prove $opt - < $srcdir/t/tlist/engine_default_$ext\.txt :: default");
+ my $returnCode = system("prove $opt - < $srcdir/t/tlist/engine_default_$ext\.txt :: default");
+ if ($returnCode != 0) {
+ exit(1);
+ }
} else {
system("echo -e \'\033[31mmake test [TYPE=<small || big>] [ENGINE=<@engine_list>]\033[0m\n\'");
exit(1);
