2015-11-05 16:13:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
### prepare
|
|
|
|
#TEST_PREPARE_WATCHDOG="no"
|
|
|
|
|
|
|
|
### SPLAT
|
|
|
|
#TEST_SPLAT_SKIP="yes"
|
|
|
|
#TEST_SPLAT_OPTIONS="-acvx"
|
|
|
|
|
|
|
|
### ztest
|
|
|
|
#TEST_ZTEST_SKIP="yes"
|
|
|
|
#TEST_ZTEST_TIMEOUT=1800
|
|
|
|
#TEST_ZTEST_DIR="/var/tmp/"
|
|
|
|
#TEST_ZTEST_OPTIONS="-V"
|
|
|
|
|
|
|
|
### zimport
|
|
|
|
#TEST_ZIMPORT_SKIP="yes"
|
|
|
|
#TEST_ZIMPORT_DIR="/var/tmp/zimport"
|
|
|
|
#TEST_ZIMPORT_VERSIONS="master installed"
|
|
|
|
#TEST_ZIMPORT_POOLS="zol-0.6.1 zol-0.6.2 master installed"
|
|
|
|
#TEST_ZIMPORT_OPTIONS="-c"
|
|
|
|
|
|
|
|
### xfstests
|
|
|
|
#TEST_XFSTESTS_SKIP="yes"
|
|
|
|
#TEST_XFSTESTS_URL="https://github.com/behlendorf/xfstests/archive/"
|
|
|
|
#TEST_XFSTESTS_VER="zfs.tar.gz"
|
|
|
|
#TEST_XFSTESTS_POOL="tank"
|
|
|
|
#TEST_XFSTESTS_FS="xfstests"
|
|
|
|
#TEST_XFSTESTS_VDEV="/var/tmp/vdev"
|
|
|
|
#TEST_XFSTESTS_OPTIONS=""
|
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
### zfs-tests.sh
|
|
|
|
#TEST_ZFSTESTS_SKIP="yes"
|
|
|
|
#TEST_ZFSTESTS_DISKS="vdb vdc vdd"
|
|
|
|
#TEST_ZFSTESTS_DISKSIZE="8G"
|
|
|
|
#TEST_ZFSTESTS_RUNFILE="linux.run"
|
|
|
|
|
2015-11-05 16:13:52 +00:00
|
|
|
### zfsstress
|
|
|
|
#TEST_ZFSSTRESS_SKIP="yes"
|
|
|
|
#TEST_ZFSSTRESS_URL="https://github.com/nedbass/zfsstress/archive/"
|
|
|
|
#TEST_ZFSSTRESS_VER="master.tar.gz"
|
|
|
|
#TEST_ZFSSTRESS_RUNTIME=300
|
|
|
|
#TEST_ZFSSTRESS_POOL="tank"
|
|
|
|
#TEST_ZFSSTRESS_FS="fish"
|
|
|
|
#TEST_ZFSSTRESS_VDEV="/var/tmp/vdev"
|
|
|
|
#TEST_ZFSSTRESS_DIR="/$TEST_ZFSSTRESS_POOL/$TEST_ZFSSTRESS_FS"
|
|
|
|
#TEST_ZFSSTRESS_OPTIONS=""
|
|
|
|
|
|
|
|
### per-builder customization
|
|
|
|
#
|
|
|
|
# BB_NAME=builder-name <distribution-version-architecture-type>
|
|
|
|
# - distribution=Amazon,Debian,Fedora,RHEL,SUSE,Ubuntu
|
|
|
|
# - version=x.y
|
|
|
|
# - architecture=x86_64,i686,arm,aarch64
|
|
|
|
# - type=build,test
|
|
|
|
#
|
|
|
|
case "$BB_NAME" in
|
|
|
|
Amazon*)
|
2017-04-07 00:15:30 +00:00
|
|
|
# ZFS enabled xfstests fails to build
|
|
|
|
TEST_XFSTESTS_SKIP="yes"
|
2015-11-05 16:13:52 +00:00
|
|
|
;;
|
2016-12-14 17:36:14 +00:00
|
|
|
CentOS-7*)
|
|
|
|
# ZFS enabled xfstests fails to build
|
|
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
|
|
;;
|
|
|
|
CentOS-6*)
|
2015-11-05 16:13:52 +00:00
|
|
|
;;
|
|
|
|
Debian*)
|
|
|
|
;;
|
|
|
|
Fedora*)
|
|
|
|
;;
|
|
|
|
RHEL*)
|
|
|
|
;;
|
|
|
|
SUSE*)
|
|
|
|
;;
|
2016-12-14 17:36:14 +00:00
|
|
|
Ubuntu-16.04*)
|
|
|
|
# ZFS enabled xfstests fails to build
|
|
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
|
|
;;
|
2015-11-05 16:13:52 +00:00
|
|
|
Ubuntu*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2016-11-08 21:57:17 +00:00
|
|
|
|
2017-09-26 19:29:32 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# Run ztest longer on the "coverage" builders to gain more code coverage
|
|
|
|
# data out of ztest, libzpool, etc.
|
|
|
|
#
|
|
|
|
case "$BB_NAME" in
|
|
|
|
*coverage*)
|
|
|
|
TEST_ZTEST_TIMEOUT=3600
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
TEST_ZTEST_TIMEOUT=900
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-11-08 21:57:17 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# Disable the following test suites on 32-bit systems.
|
|
|
|
#
|
|
|
|
if [ $(getconf LONG_BIT) = "32" ]; then
|
|
|
|
TEST_ZTEST_SKIP="yes"
|
|
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
|
|
TEST_ZFSSTRESS_SKIP="yes"
|
|
|
|
fi
|