]> Zhao Yanbai Git Server - minix.git/commitdiff
run script:return 1 upon test failure. 19/519/2
authorKees Jongenburger <keesj@minix3.org>
Sat, 20 Apr 2013 07:26:18 +0000 (09:26 +0200)
committerKees Jongenburger <keesj@minix3.org>
Sun, 21 Apr 2013 18:18:11 +0000 (20:18 +0200)
Change-Id: If3c9d636a04da7f7b4098b58d29c492c664dab1a

test/run

index 7abad9d538c60af2ebd3056eb602a4303cadfd3a..759b476232872a2e22ce414bcb4355c6b1374648 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -59,6 +59,13 @@ for i in `echo $tests`; do
    fi
 done
 
+# 
+if [  $tests_no -eq 0 ]
+then
+       echo "No test binaries found. did you compile?"
+       exit 1
+fi
+
 if [ "$tests" = "$alltests" ]
 then   # Print test welcome message
        clear
@@ -105,4 +112,10 @@ then       echo " "
        fi
 fi
 
+# if any test failed return an error
+if [ $failed -gt 0 ] 
+then
+       exit 1
+fi
+
 # echo " "