From 5eb529fba0782649e216965acd38b235711cb4c9 Mon Sep 17 00:00:00 2001 From: Rachita Kothiyal Date: Fri, 12 Oct 2007 17:25:57 -0400 Subject: [PATCH] Hardcoding TESTS2RUN to create, to test only create for now --- odf.conf | 5 ++++- run-tests | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/odf.conf b/odf.conf index a66afdd..b8257aa 100644 --- a/odf.conf +++ b/odf.conf @@ -35,7 +35,10 @@ BROKEN_TESTS=" " # 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 diff --git a/run-tests b/run-tests index 513600f..924c224 100755 --- a/run-tests +++ b/run-tests @@ -154,15 +154,15 @@ function setup_lower 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 @@ -246,7 +246,7 @@ do 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." @@ -254,7 +254,7 @@ do # 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 @@ -268,7 +268,7 @@ do 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) -- 2.43.0