btrfs-progs: Introduce a misc test for thread conflict in btrfs-convert
[platform/upstream/btrfs-progs.git] / tests / misc-tests.sh
index 5bbe914..1ed8850 100755 (executable)
@@ -20,6 +20,8 @@ export RESULTS
 # For custom script needs to verfiy recovery
 export TEST_MNT
 export LANG
+# For tests that only use a loop device
+export IMAGE
 
 rm -f $RESULTS
 mkdir -p $TEST_MNT || _fail "unable to create mount point on $TEST_MNT"
@@ -32,7 +34,8 @@ check_prereq btrfs
 
 # The tests are driven by their custom script called 'test.sh'
 
-for i in $(find $TOP/tests/misc-tests -maxdepth 1 -mindepth 1 -type d | sort)
+for i in $(find $TOP/tests/misc-tests -maxdepth 1 -mindepth 1 -type d  \
+       ${TEST:+-name "$TEST"} | sort)
 do
        echo "    [TEST]   $(basename $i)"
        cd $i