7 echo "Run all ONE tests"
9 echo This must be run with superuser privileges.
13 echo " -v : verbose output"
14 echo " -h : show help"
19 while [ $# -gt 0 ] ; do
23 if [ $arg == "-v" ]; then
25 elif [ $arg == "-h" ] ; then
41 test_num=`ls -l $TESTS_DIR/test_* | wc -l`
44 echo "Running VPP lite test suite."
47 for test_case in $TESTS_DIR/test_*
49 let "count=$count + 1"
52 base_name=`basename -a $test_case`
53 printf "*** %d/%d : %-45s" $count $test_num $base_name
55 if [ $verbose -ne 0 ] ; then
58 $test_case &> /dev/null
62 if [ $rc -ne 0 ] ; then
64 failed_tcs+=("$test_case")
65 let "failed_num=$failed_num + 1"
68 let "passed_num=$passed_num + 1"
74 runtime=$((end_time-start_time))
77 echo "------------------------------------------------------"
78 echo "Runtime: " `date -u -d @${runtime} +"%M min %S sec"`
81 if [ $failed_num -eq 0 ]; then
82 echo "All tests have passed."
84 echo "List of failed test cases:"
85 for tc in "${failed_tcs[@]}"
91 echo "------------------------------------------------------"