3 # convert ext2/3/4 images to btrfs images, and make sure the results are
7 SCRIPT_DIR
=$
(dirname $
(readlink
-f $0))
8 TOP
=$
(readlink
-f $SCRIPT_DIR/..
/)
10 RESULTS
="$TOP/tests/convert-tests-results.txt"
11 IMAGE
="$TOP/tests/test.img"
13 source $TOP/tests
/common
14 source $TOP/tests
/common.convert
29 testname
=$
(basename "$testdir")
30 echo " [TEST/conv] $testname"
32 echo "=== Entering $testname" >> $RESULTS
33 if [ -x test.sh
]; then
34 # Only support custom test scripts
37 _fail
"test failed for case $testname"
40 _fail
"custom test script not found"
45 for i
in $
(find $TOP/tests
/convert-tests
-maxdepth 1 -mindepth 1 -type d \
46 ${TEST:+-name "$TEST"} |
sort)