3 # convert ext2/3/4 images to btrfs images, and make sure the results are
10 SCRIPT_DIR=$(dirname $(readlink -f $0))
11 TOP=$(readlink -f $SCRIPT_DIR/../)
12 RESULTS="$TOP/tests/convert-tests-results.txt"
14 source $TOP/tests/common
15 source $TOP/tests/common.convert
17 # Allow child test to use $TOP and $RESULTS
28 echo " [TEST/conv] $testname"
30 echo "=== Entering $testname" >> $RESULTS
31 if [ -x test.sh ]; then
32 # Difference convert test case needs different tools to restore
33 # and check image, so only support custom test scripts
36 _fail "test failed for case $(basename $testname)"
39 _fail "custom test script not found"
44 for i in $(find $TOP/tests/convert-tests -maxdepth 1 -mindepth 1 -type d \
45 ${TEST:+-name "$TEST"} | sort)