QA updates.
[xfstests-dev.git] / common.config
index c0f7190801e355f2b1c1c11c4614e4a0b8b9a592..623ffec54081db47a7cb8a215852221ed7cbc6b7 100644 (file)
 
 #
 # - This script is shared by the stress test system and the auto-qa
-#   system
+#   system (includes both regression test and benchmark components).
 # - TEST_DEV & TEST_DIR must be assigned.
 # - this script shouldn't make any assertions about filesystem
 #   validity or mountedness.
 #
 
-_readlink()
-{
-    if [ $# -ne 1 ]
-    then
-       echo "Usage: _readlink filename" 1>&2
-       exit 1
-    fi
+HOST=`hostname -s`
+MODULAR=0              # using XFS as a module or not
+BOOT="/boot"           # install target for kernels
+export EXTRA=${EXTRA:=-xfs-qa}
 
-    perl -e "\$in=\"$1\";" -e '
-       $lnk = readlink($in);
-       if ($lnk =~ m!^/.*!) {
-         print "$lnk\n";
-       }
-       else {
-         chomp($dir = `dirname $in`);
-         print "$dir/$lnk\n";
-       }'
-}
+# general parameters (mainly for auto-qa)
+SOAK_PROC=3            # -p option to fsstress
+SOAK_STRESS=10000      # -n option to fsstress
+SOAK_PASSES=-1         # count of repetitions of fsstress (while soaking)
+EMAIL=root@localhost   # where auto-qa will send its status messages
+export MKFS_OPTIONS=${MKFS_OPTIONS:=-bsize=4096}
+export MOUNT_OPTIONS=${MOUNT_OPTIONS:=-ologbufs=2}
+export BENCH_PASSES=${BENCH_PASSES:=5}
 
+export DEBUG=${DEBUG:=-DEXPERIMENTAL_LARGE_SECTORS}
+export MALLOCLIB=${MALLOCLIB:=/usr/lib/libefence.a}
+export LOCAL_CONFIGURE_OPTIONS=${LOCAL_CONFIGURE_OPTIONS:=--enable-readline=yes}
 
-case `hostname -s`
+case "$HOST"
 in
     bruce)
-        TEST_DEV=/dev/sda10
-       TEST_DIR=/mnt/xfs1
-       SCRATCH_DEV=/dev/sda9
+       MODULAR=0
+       EMAIL="nathans@larry"
        SCRATCH_MNT=/mnt/xfs0
+       SCRATCH_DEV=/dev/sdb5
+       SCRATCH_RTDEV=/dev/sda9
        SCRATCH_LOGDEV=/dev/sda11
+       TEST_DIR=/mnt/xfs1
+        TEST_DEV=/dev/sda10
        TAPE_DEV=/dev/st0
        RMT_TAPE_DEV=bruce:/dev/st0
        RMT_IRIXTAPE_DEV=snort:/dev/tape
@@ -99,6 +100,8 @@ in
        SCRATCH_MNT=/mnt/xfs0
         ;;
     sagan)
+       MODULAR=1
+       EMAIL="tes@larry"
         TEST_DEV=/dev/sda6
        TEST_DIR=/mnt/xfs0
        SCRATCH_DEV=/dev/sda7
@@ -109,24 +112,27 @@ in
        RMT_TAPE_USER=guest
        ;;
     frodo)
+       MODULAR=0
+       EMAIL="nathans@larry"
         TEST_DEV=/dev/hda6
        TEST_DIR=/mnt/test
         SCRATCH_DEV=/dev/hda7
        SCRATCH_MNT=/mnt/scratch
+        SCRATCH_LOGDEV=/dev/hda9
        ;;
-    troppo)
-       TEST_DEV=/dev/hdb13
-       TEST_DIR=/mnt/test
-       SCRATCH_DEV=/dev/hdb14
-       SCRATCH_MNT=/mnt/scratch
-       SCRATCH_LOGDEV=/dev/hdb15
+    goldfish)
+       MODULAR=0
+       TEST_DEV=/dev/hdc1
+       TEST_DIR=/mnt/xfs0
+       SCRATCH_DEV=/dev/hdc2
+       SCRATCH_MNT=/mnt/xfs1
+       SCRATCH_LOGDEV=/dev/hdc3
        ;;
     lord)
        TEST_DIR=/xfs
        TEST_DEV=/dev/sda5
-       SCRATCH_DEV=/dev/sda6
-       SCRATCH_LOGDEV=/dev/hda7
-       SCRATCH_RTDEV=/dev/hda8
+       SCRATCH_DEV=/dev/hda7
+       SCRATCH_LOGDEV=/dev/sda6
        SCRATCH_MNT=/xfs1
        ;;
     burst)
@@ -187,7 +193,7 @@ in
        SCRATCH_MNT=/mnt/sda2
        SCRATCH_LOGDEV=/dev/sda3
        ;;
-   dmfnt2)
+    dmfnt2)
         TEST_DEV=/dev/sda6
        TEST_DIR=/mnt/test
        SCRATCH_DEV=/dev/sdc6
@@ -197,8 +203,18 @@ in
 #      RMT_IRIXTAPE_DEV=longhorn:/dev/tape
        RMT_TAPE_USER=guest
        ;;
+    lab343)
+       MODULAR=0
+       EMAIL="hch@sgi.com"
+       TEST_DEV=/dev/sdb1
+       SCRATCH_DEV=/dev/sdb2
+       SCRATCH_LOGDEV=/dev/sdb5
+       SCRATCH_RTDEV=/dev/sdb6
+       TEST_DIR=/qa/test
+       SCRATCH_MNT=/qa/scratch
+       ;;
     *)
-       echo "common.config: Error: need to define parameters for host `hostname -s`"
+       echo "common.config: Error: need to define parameters for host $HOST"
        exit 1
        ;;
 esac
@@ -227,6 +243,25 @@ then
     exit 1
 fi
 
+_readlink()
+{
+    if [ $# -ne 1 ]
+    then
+       echo "Usage: _readlink filename" 1>&2
+       exit 1
+    fi
+
+    perl -e "\$in=\"$1\";" -e '
+       $lnk = readlink($in);
+       if ($lnk =~ m!^/.*!) {
+         print "$lnk\n";
+       }
+       else {
+         chomp($dir = `dirname $in`);
+         print "$dir/$lnk\n";
+       }'
+}
+
 # if devfs is running expand the full /dev/.. pathname - this is what will be
 # returned by utilities such as mount
 [ -L "$TEST_DEV" ] && TEST_DEV=`_readlink $TEST_DEV`