Filip Tehlar | d5a3380 | 2021-02-20 02:26:17 +0000 | [diff] [blame] | 1 | print_help() { |
2 | echo "vpp/strongswan tests" | ||||
3 | } | ||||
4 | |||||
5 | count=0 | ||||
6 | test_num=`ls -l test_* | wc -l` | ||||
7 | |||||
8 | for test_case in test_* | ||||
9 | do | ||||
10 | let "count=$count + 1" | ||||
11 | |||||
12 | base_name=`basename -a "$test_case"` | ||||
13 | printf "%2d/%d : %-48s" $count $test_num "$base_name" | ||||
14 | logger "test start $base_name" | ||||
15 | |||||
16 | bash $test_case &> /dev/null | ||||
17 | rc=$? | ||||
18 | |||||
19 | if [ $rc -ne 0 ] ; then | ||||
20 | printf "failed!\n" | ||||
21 | else | ||||
22 | printf "passed.\n" | ||||
23 | fi | ||||
24 | done | ||||
25 | |||||
26 | exit 0 |