6 SCRIPT_DIR=$(dirname $(readlink -f "$0"))
7 TOP=$(readlink -f "$SCRIPT_DIR/../")
9 RESULTS="$TOP/tests/mkfs-tests-results.txt"
10 IMAGE="$TOP/tests/test.img"
12 source "$TOP/tests/common"
22 check_prereq mkfs.btrfs
26 # The tests are driven by their custom script called 'test.sh'
28 for i in $(find "$TOP/tests/mkfs-tests" -maxdepth 1 -mindepth 1 -type d \
29 ${TEST:+-name "$TEST"} | sort)
31 echo " [TEST/mkfs] $(basename $i)"
33 echo "=== Entering $i" >> "$RESULTS"
34 if [ -x test.sh ]; then
37 if [[ $TEST_LOG =~ dump ]]; then
40 _fail "test failed for case $(basename $i)"