mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 10:49:34 +03:00
93ce2b4ca5
Minimal changes required to integrate the SPL sources in to the ZFS repository build infrastructure and packaging. Build system and packaging: * Renamed SPL_* autoconf m4 macros to ZFS_*. * Removed redundant SPL_* autoconf m4 macros. * Updated the RPM spec files to remove SPL package dependency. * The zfs package obsoletes the spl package, and the zfs-kmod package obsoletes the spl-kmod package. * The zfs-kmod-devel* packages were updated to add compatibility symlinks under /usr/src/spl-x.y.z until all dependent packages can be updated. They will be removed in a future release. * Updated copy-builtin script for in-kernel builds. * Updated DKMS package to include the spl.ko. * Updated stale AUTHORS file to include all contributors. * Updated stale COPYRIGHT and included the SPL as an exception. * Renamed README.markdown to README.md * Renamed OPENSOLARIS.LICENSE to LICENSE. * Renamed DISCLAIMER to NOTICE. Required code changes: * Removed redundant HAVE_SPL macro. * Removed _BOOT from nvpairs since it doesn't apply for Linux. * Initial header cleanup (removal of empty headers, refactoring). * Remove SPL repository clone/build from zimport.sh. * Use of DEFINE_RATELIMIT_STATE and DEFINE_SPINLOCK removed due to build issues when forcing C99 compilation. * Replaced legacy ACCESS_ONCE with READ_ONCE. * Include needed headers for `current` and `EXPORT_SYMBOL`. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> TEST_ZIMPORT_SKIP="yes" Closes #7556
112 lines
2.3 KiB
Bash
112 lines
2.3 KiB
Bash
#!/bin/sh
|
|
|
|
### prepare
|
|
#TEST_PREPARE_WATCHDOG="yes"
|
|
#TEST_PREPARE_SHARES="yes"
|
|
|
|
### ztest
|
|
#TEST_ZTEST_SKIP="yes"
|
|
#TEST_ZTEST_TIMEOUT=1800
|
|
#TEST_ZTEST_DIR="/var/tmp/"
|
|
#TEST_ZTEST_OPTIONS="-V"
|
|
#TEST_ZTEST_CORE_DIR="/mnt/zloop"
|
|
|
|
### 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=""
|
|
|
|
### zfs-tests.sh
|
|
#TEST_ZFSTESTS_SKIP="yes"
|
|
#TEST_ZFSTESTS_DIR="/mnt/"
|
|
#TEST_ZFSTESTS_DISKS="vdb vdc vdd"
|
|
#TEST_ZFSTESTS_DISKSIZE="8G"
|
|
#TEST_ZFSTESTS_ITERS="1"
|
|
#TEST_ZFSTESTS_OPTIONS="-vx"
|
|
#TEST_ZFSTESTS_RUNFILE="linux.run"
|
|
#TEST_ZFSTESTS_TAGS="functional"
|
|
|
|
### 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_FSOPT="-o overlay=on"
|
|
#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*)
|
|
# ZFS enabled xfstests fails to build
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
;;
|
|
CentOS-7*)
|
|
# ZFS enabled xfstests fails to build
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
;;
|
|
CentOS-6*)
|
|
;;
|
|
Debian*)
|
|
;;
|
|
Fedora*)
|
|
;;
|
|
RHEL*)
|
|
;;
|
|
SUSE*)
|
|
;;
|
|
Ubuntu-16.04*)
|
|
# ZFS enabled xfstests fails to build
|
|
TEST_XFSTESTS_SKIP="yes"
|
|
;;
|
|
Ubuntu*)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
###
|
|
#
|
|
# 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
|
|
|
|
###
|
|
#
|
|
# 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
|