6 SCRIPT_DIR=$(dirname $(readlink -f $0))
7 TOP=$(readlink -f $SCRIPT_DIR/../)
9 RESULTS="$TOP/tests/misc-tests-results.txt"
10 IMAGE="$TOP/tests/test.img"
12 source $TOP/tests/common
22 # test rely on corrupting blocks tool
23 check_prereq btrfs-corrupt-block
24 check_prereq btrfs-image
25 check_prereq btrfstune
29 # The tests are driven by their custom script called 'test.sh'
31 for i in $(find $TOP/tests/misc-tests -maxdepth 1 -mindepth 1 -type d \
32 ${TEST:+-name "$TEST"} | sort)
34 echo " [TEST/misc] $(basename $i)"
36 echo "=== Entering $i" >> $RESULTS
37 if [ -x test.sh ]; then
40 _fail "test failed for case $(basename $i)"