"
# names of tests to run (change as you like)
# Will take $MYTESTS list of tests from the environment
-TESTS2RUN=${MYTESTS:-$ALL_TESTS}
+#TESTS2RUN=${MYTESTS:-$ALL_TESTS}
+
+#Hardcoding this to test only 'create'
+TESTS2RUN="create"
# Running On-Disk Format (ODF) ? 1=yes, 0=no
ODF=1
done
}
+
function do_umount
{
branch=$1
dev=$2
fs=$3
- # first, unmount main branch
runcmd umount /n/lower/b$branch
-
+
case "$fs" in
nfs* )
runcmd exportfs -u localhost:/n/export/b$branch
fi
# test if file systems are supported by this kernel, and skip if not
- test_fs $MYFS $FS0 $FS1 $FS2 $FS3 $SPECIAL_FS
+ test_fs $MYFS $FS0 $FS1 $FS2 $FS3 $FS4 $SPECIAL_FS
delay=$DELAY
echo "Sleeping for "$delay" seconds between each command."
# Export the type of file systems, as some tests need to know.
# For example: jffs2, cramfs, and squashfs.
- export FS0 FS1 FS2 FS3 DEV0 DEV1 DEV2 DEV3 SPECIAL_FS delay OUTPUT_COLOR
+ export FS0 FS1 FS2 FS3 ODF_FS DEV0 DEV1 DEV2 DEV3 ODF_DEV ODF_DIR SPECIAL_FS delay OUTPUT_COLOR POPULATE_ODF
# run actual test and abort on error (test script tries to umount unionfs)
runcmd bash $t
runcmd sync
# try to unmount lower file systems (check if we leak anything)
- for i in 0 1 2 3 ; do
+ for i in 0 1 2 3 ; do
do_umount $i $(eval echo \$DEV$i) $(eval echo \$FS$i)
done
# unload unionfs module (check if we leak anything)