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
28 # The tests are driven by their custom script called 'test.sh'
30 for i in $(find $TOP/tests/misc-tests -maxdepth 1 -mindepth 1 -type d \
31 ${TEST:+-name "$TEST"} | sort)
33 echo " [TEST/misc] $(basename $i)"
35 echo "=== Entering $i" >> $RESULTS
36 if [ -x test.sh ]; then
39 _fail "test failed for case $(basename $i)"