mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Update auto-benchmark stuff to remove assumptions about xfs as the only fs
This commit is contained in:
+155
-145
@@ -52,8 +52,8 @@
|
||||
# RMT_IRIXTAPE_DEV - the IRIX remote tape device for the xfsdump tests
|
||||
# RMT_TAPE_USER - remote user for tape device
|
||||
#
|
||||
|
||||
#
|
||||
# - These can be added to known_hosts() below or a separate local
|
||||
# configuration file can be used (using the HOST_OPTIONS variable).
|
||||
# - This script is shared by the stress test system and the auto-qa
|
||||
# system (includes both regression test and benchmark components).
|
||||
# - TEST_DEV & TEST_DIR must be assigned.
|
||||
@@ -71,6 +71,7 @@ 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 HOST_OPTIONS=${HOST_OPTIONS:=local.config}
|
||||
export MKFS_OPTIONS=${MKFS_OPTIONS:=-bsize=4096}
|
||||
export MOUNT_OPTIONS=${MOUNT_OPTIONS:=-ologbufs=2}
|
||||
export CHECK_OPTIONS=${CHECK_OPTIONS:="-g auto"}
|
||||
@@ -80,149 +81,158 @@ export BENCH_PASSES=${BENCH_PASSES:=5}
|
||||
export MALLOCLIB=${MALLOCLIB:=/usr/lib/libefence.a}
|
||||
export LOCAL_CONFIGURE_OPTIONS=${LOCAL_CONFIGURE_OPTIONS:=--enable-readline=yes}
|
||||
|
||||
case "$HOST"
|
||||
in
|
||||
bruce)
|
||||
MODULAR=0
|
||||
EMAIL="nathans@larry"
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdb5
|
||||
SCRATCH_LOGDEV=/dev/sda11
|
||||
TEST_DIR=/mnt/xfs1
|
||||
TEST_DEV=/dev/sdc3
|
||||
TEST_LOGDEV=/dev/sda9
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=bruce:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=snort:/dev/tape
|
||||
RMT_TAPE_USER=guest
|
||||
;;
|
||||
sherman)
|
||||
TEST_DEV=/dev/sda10
|
||||
TEST_DIR=/mnt/xfs1
|
||||
SCRATCH_DEV=/dev/sda9
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
;;
|
||||
flutz)
|
||||
MODULAR=0
|
||||
EMAIL="nathans@larry"
|
||||
TEST_DEV=/dev/sda5
|
||||
TEST_LOGDEV=/dev/sda9
|
||||
TEST_DIR=/xfsqa1
|
||||
SCRATCH_DEV=/dev/sda6
|
||||
SCRATCH_LOGDEV=/dev/sda7
|
||||
SCRATCH_MNT=/xfsqa2
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=bruce:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=snort:/dev/tape
|
||||
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
|
||||
;;
|
||||
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/hda7
|
||||
SCRATCH_LOGDEV=/dev/sda6
|
||||
SCRATCH_MNT=/xfs1
|
||||
;;
|
||||
burst)
|
||||
TEST_DIR=/xfs
|
||||
TEST_DEV=/dev/hda3
|
||||
SCRATCH_DEV=/dev/hda7
|
||||
SCRATCH_MNT=/scratch
|
||||
;;
|
||||
lumpy)
|
||||
TEST_DEV=/dev/sdc5
|
||||
TEST_DIR=/mnt/scratch_0
|
||||
SCRATCH_DEV=/dev/sdc7
|
||||
SCRATCH_MNT=/mnt/scratch_2
|
||||
;;
|
||||
bongo)
|
||||
TEST_DEV=/dev/hda8
|
||||
TEST_DIR=/xfs1
|
||||
SCRATCH_DEV=/dev/hda9
|
||||
SCRATCH_MNT=/xfs2
|
||||
SCRATCH_LOGDEV=/dev/hda10
|
||||
SCRATCH_RTDEV=/dev/hda11
|
||||
;;
|
||||
surly)
|
||||
TEST_DEV=/dev/hda9
|
||||
TEST_DIR=/mnt/xfs1
|
||||
SCRATCH_DEV=/dev/hda8
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
SCRATCH_LOGDEV=/dev/hda10
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=fuzzy:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=blub:/dev/tape
|
||||
RMT_TAPE_USER=guest
|
||||
;;
|
||||
permit)
|
||||
TEST_DEV=/dev/sdc1
|
||||
TEST_DIR=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdd1
|
||||
SCRATCH_MNT=/mnt/xfs1
|
||||
;;
|
||||
indra)
|
||||
TEST_DEV=/dev/sdb1
|
||||
TEST_DIR=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdb2
|
||||
SCRATCH_MNT=/mnt/xfs1
|
||||
;;
|
||||
usermode)
|
||||
TEST_DEV=/dev/ubd/1
|
||||
TEST_DIR=/mnt/test
|
||||
SCRATCH_DEV=/dev/ubd/2
|
||||
SCRATCH_MNT=/mnt/scratch
|
||||
SCRATCH_RTDEV=/dev/ubd/3
|
||||
SCRATCH_LOGDEV=/dev/ubd/4
|
||||
;;
|
||||
lite)
|
||||
TEST_DEV=/dev/sda1
|
||||
TEST_DIR=/mnt/sda1
|
||||
SCRATCH_DEV=/dev/sda2
|
||||
SCRATCH_MNT=/mnt/sda2
|
||||
SCRATCH_LOGDEV=/dev/sda3
|
||||
;;
|
||||
dmfnt2)
|
||||
TEST_DEV=/dev/sda6
|
||||
TEST_DIR=/mnt/test
|
||||
SCRATCH_DEV=/dev/sdc6
|
||||
SCRATCH_MNT=/mnt/scratch
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=longhorn:/dev/tape
|
||||
# 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 $HOST"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
known_hosts()
|
||||
{
|
||||
case "$HOST"
|
||||
in
|
||||
bruce)
|
||||
MODULAR=0
|
||||
EMAIL="nathans@larry"
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdb5
|
||||
SCRATCH_LOGDEV=/dev/sda11
|
||||
TEST_DIR=/mnt/xfs1
|
||||
TEST_DEV=/dev/sdc3
|
||||
TEST_LOGDEV=/dev/sda9
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=bruce:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=snort:/dev/tape
|
||||
RMT_TAPE_USER=guest
|
||||
;;
|
||||
sherman)
|
||||
TEST_DEV=/dev/sda10
|
||||
TEST_DIR=/mnt/xfs1
|
||||
SCRATCH_DEV=/dev/sda9
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
;;
|
||||
flutz)
|
||||
MODULAR=0
|
||||
EMAIL="nathans@larry"
|
||||
TEST_DEV=/dev/sda5
|
||||
TEST_LOGDEV=/dev/sda9
|
||||
TEST_DIR=/xfsqa1
|
||||
SCRATCH_DEV=/dev/sda6
|
||||
SCRATCH_LOGDEV=/dev/sda7
|
||||
SCRATCH_MNT=/xfsqa2
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=bruce:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=snort:/dev/tape
|
||||
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
|
||||
;;
|
||||
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/hda7
|
||||
SCRATCH_LOGDEV=/dev/sda6
|
||||
SCRATCH_MNT=/xfs1
|
||||
;;
|
||||
burst)
|
||||
TEST_DIR=/xfs
|
||||
TEST_DEV=/dev/hda3
|
||||
SCRATCH_DEV=/dev/hda7
|
||||
SCRATCH_MNT=/scratch
|
||||
;;
|
||||
lumpy)
|
||||
TEST_DEV=/dev/sdc5
|
||||
TEST_DIR=/mnt/scratch_0
|
||||
SCRATCH_DEV=/dev/sdc7
|
||||
SCRATCH_MNT=/mnt/scratch_2
|
||||
;;
|
||||
bongo)
|
||||
TEST_DEV=/dev/hda8
|
||||
TEST_DIR=/xfs1
|
||||
SCRATCH_DEV=/dev/hda9
|
||||
SCRATCH_MNT=/xfs2
|
||||
SCRATCH_LOGDEV=/dev/hda10
|
||||
SCRATCH_RTDEV=/dev/hda11
|
||||
;;
|
||||
surly)
|
||||
TEST_DEV=/dev/hda9
|
||||
TEST_DIR=/mnt/xfs1
|
||||
SCRATCH_DEV=/dev/hda8
|
||||
SCRATCH_MNT=/mnt/xfs0
|
||||
SCRATCH_LOGDEV=/dev/hda10
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=fuzzy:/dev/st0
|
||||
RMT_IRIXTAPE_DEV=blub:/dev/tape
|
||||
RMT_TAPE_USER=guest
|
||||
;;
|
||||
permit)
|
||||
TEST_DEV=/dev/sdc1
|
||||
TEST_DIR=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdd1
|
||||
SCRATCH_MNT=/mnt/xfs1
|
||||
;;
|
||||
indra)
|
||||
TEST_DEV=/dev/sdb1
|
||||
TEST_DIR=/mnt/xfs0
|
||||
SCRATCH_DEV=/dev/sdb2
|
||||
SCRATCH_MNT=/mnt/xfs1
|
||||
;;
|
||||
usermode)
|
||||
TEST_DEV=/dev/ubd/1
|
||||
TEST_DIR=/mnt/test
|
||||
SCRATCH_DEV=/dev/ubd/2
|
||||
SCRATCH_MNT=/mnt/scratch
|
||||
SCRATCH_RTDEV=/dev/ubd/3
|
||||
SCRATCH_LOGDEV=/dev/ubd/4
|
||||
;;
|
||||
lite)
|
||||
TEST_DEV=/dev/sda1
|
||||
TEST_DIR=/mnt/sda1
|
||||
SCRATCH_DEV=/dev/sda2
|
||||
SCRATCH_MNT=/mnt/sda2
|
||||
SCRATCH_LOGDEV=/dev/sda3
|
||||
;;
|
||||
dmfnt2)
|
||||
TEST_DEV=/dev/sda6
|
||||
TEST_DIR=/mnt/test
|
||||
SCRATCH_DEV=/dev/sdc6
|
||||
SCRATCH_MNT=/mnt/scratch
|
||||
TAPE_DEV=/dev/st0
|
||||
RMT_TAPE_DEV=longhorn:/dev/tape
|
||||
# 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 "Error: need to define parameters for host $HOST"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
if [ -f "$HOST_OPTIONS" ]; then
|
||||
source "$HOST_OPTIONS"
|
||||
else
|
||||
known_hosts
|
||||
fi
|
||||
|
||||
if [ ! -b "$TEST_DEV" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user