diff --git a/test/testrunner.sh b/test/testrunner.sh index 21503b8c..af4eb8fc 100644 --- a/test/testrunner.sh +++ b/test/testrunner.sh @@ -2,6 +2,7 @@ STATS_FAILED=0 STATS_SUCCESS=0 +STATS_SKIPED=0 STATS_TOTAL=0 @@ -9,6 +10,12 @@ STATS_TOTAL=0 function exec_test() { local test_name="$1" + if [ ! -e "$2" ] + then + echo "skip test: '$test_name'" + (( STATS_SKIPED++ )) + return + fi shift (( STATS_TOTAL++ )) echo "execute test: '$test_name'" @@ -45,6 +52,7 @@ echo "TEST SUMMARY" echo "============" echo " total: $STATS_TOTAL" echo " success: $STATS_SUCCESS" +echo " skiped: $STATS_SKIPED" echo " failed: $STATS_FAILED" sleep 2