3 # command line interface coverage tests
6 SCRIPT_DIR=$(dirname $(readlink -f $0))
7 TOP=$(readlink -f $SCRIPT_DIR/../)
9 RESULTS="$TOP/tests/cli-tests-results.txt"
10 IMAGE="$TOP/tests/test.img"
12 source $TOP/tests/common
24 # The tests are driven by their custom script called 'test.sh'
26 for i in $(find $TOP/tests/cli-tests -maxdepth 1 -mindepth 1 -type d \
27 ${TEST:+-name "$TEST"} | sort)
31 if [ -x test.sh ]; then
32 echo "=== Entering $i" >> $RESULTS
33 echo " [TEST/cli] $name"
36 _fail "test failed for case $(basename $i)"