DEV1=/dev/loop2
DEV2=/dev/loop3
DEV3=/dev/loop4
+
# Name of file systems to format your device. Supported file systems
# include: ext2, ext3, xfs, reiserfs, nfs, nfs2, nfs3, nfs4, and jffs2.
-FS0=ext2
-FS1=ext2
-FS2=ext2
-FS3=ext2
+case ${MYFS} in
+ # jffs2 is special: only the leftmost filesystem uses it
+ jffs* )
+ FS0=${MYFS}
+ FS1=ext2
+ FS2=ext2
+ FS3=ext2
+ ;;
+ * )
+ FS0=${MYFS}
+ FS1=${MYFS}
+ FS2=${MYFS}
+ FS3=${MYFS}
+ ;;
+esac
# delay between each test (in seconds, optional)
DELAY=1
DEV1=/dev/loop1
DEV2=/dev/loop2
DEV3=/dev/loop3
+
# Name of file systems to format your device. Supported file systems
# include: ext2, ext3, xfs, reiserfs, nfs, nfs2, nfs3, nfs4, and jffs2.
-myfs=${MYFS:-ext2}
-FS0=$myfs
-FS1=$myfs
-FS2=$myfs
-FS3=$myfs
+case ${MYFS} in
+ # jffs2 is special: only the leftmost filesystem uses it
+ jffs* )
+ FS0=${MYFS}
+ FS1=ext2
+ FS2=ext2
+ FS3=ext2
+ ;;
+ * )
+ FS0=${MYFS}
+ FS1=${MYFS}
+ FS2=${MYFS}
+ FS3=${MYFS}
+ ;;
+esac
# delay between each test (in seconds or fractions thereof, optional)
DELAY=0.5
+++ /dev/null
-# default Unionfs 2.0 regression configuration file
-# uses ext2 by default, which you can override using a $MYFS env var
-
-# names of all possible tests
-# Note: you can give full name of test (t-chmod.sh) or short (chmod)
-ALL_TESTS="
- t-chmod.sh
- t-creat-open.sh
- t-create.sh
- t-flock.sh
- t-fsync.sh
- t-ioctl.sh
- t-link-rename.sh
- t-link.sh
- t-lookup-opaque.sh
- t-lookup.sh
- t-mkdir.sh
- t-mknod.sh
- t-mmap.sh
- t-open-unlink.sh
- t-open.sh
- t-readdir.sh
- t-rename-matrix.sh
- t-rename-whiteout.sh
- t-symlink.sh
- t-truncate-all.sh
- t-unlink-whiteout.sh
-"
-
-# The branch-management test is "broken" and needs to be rewritten to
-# support the new remount-style -ezk.
-BROKEN_TESTS="
- t-branchman.sh
- t-incgen.sh
-"
-# names of tests to run (change as you like)
-# Will take $MYTESTS list of tests from the environment
-TESTS2RUN=${MYTESTS:-$ALL_TESTS}
-
-# name of four devices to use
-DEV0=/dev/loop0
-DEV1=/dev/loop1
-DEV2=/dev/loop2
-DEV3=/dev/loop3
-# Name of file systems to format your device. Supported file systems
-# include: ext2, ext3, xfs, reiserfs, nfs, nfs2, nfs3, nfs4, and jffs2.
-myfs=${MYFS:-ext2}
-FS0=jffs2
-FS1=$myfs
-FS2=$myfs
-FS3=$myfs
-
-# delay between each test (in seconds or fractions thereof, optional)
-DELAY=0.5
-
-# Echo the command being executed to a file/device (optional) This is useful
-# when unionfs printk's some debugging output which may go to a log file,
-# console, or syslog. With this you can show command in your logs before it
-# runs.
-#ECHODEV=/var/log/all
-ECHODEV=/dev/console
-
-# ANSI color codes, concatenated by ';'
-#
-# 00 for normal display (or just 0)
-# 01 for bold on (or just 1)
-# 02 faint (or just 2)
-# 03 standout (or just 3)
-# 04 underline (or just 4)
-# 05 blink on (or just 5)
-# 07 reverse video on (or just 7)
-# 08 nondisplayed (invisible) (or just 8)
-# 22 normal
-# 23 no-standout
-# 24 no-underline
-# 25 no-blink
-# 27 no-reverse
-# 30 black foreground
-# 31 red foreground
-# 32 green foreground
-# 33 yellow foreground
-# 34 blue foreground
-# 35 magenta foreground
-# 36 cyan foreground
-# 37 white foreground
-# 39 default foreground
-# 40 black background
-# 41 red background
-# 42 green background
-# 43 yellow background
-# 44 blue background
-# 45 magenta background
-# 46 cyan background
-# 47 white background
-# 49 default background
-OUTPUT_COLOR="1;32"
DEV1=/dev/.static/dev/loop1
DEV2=/dev/.static/dev/loop2
DEV3=/dev/.static/dev/loop3
+
# Name of file systems to format your device. Supported file systems
# include: ext2, ext3, xfs, reiserfs, nfs, nfs2, nfs3, nfs4, and jffs2.
-myfs=${MYFS:-ext2}
-FS0=$myfs
-FS1=$myfs
-FS2=$myfs
-FS3=$myfs
+case ${MYFS} in
+ # jffs2 is special: only the leftmost filesystem uses it
+ jffs* )
+ FS0=${MYFS}
+ FS1=ext2
+ FS2=ext2
+ FS3=ext2
+ ;;
+ * )
+ FS0=${MYFS}
+ FS1=${MYFS}
+ FS2=${MYFS}
+ FS3=${MYFS}
+ ;;
+esac
# delay between each test (in seconds, optional)
DELAY=0.125