diff options
author | Matthew Macy <[email protected]> | 2019-12-18 12:29:43 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-18 12:29:43 -0800 |
commit | 7839c4b5e1e79e29f0df4ec9fe5e1e7182473e47 (patch) | |
tree | ef0214b6e757aeb181e54944abffe4e116bbf018 /tests/zfs-tests/include/default.cfg.in | |
parent | 118fc3ef07c53a88ea1d4c21142a2b01c4648434 (diff) |
Update ZTS to work on FreeBSD
Update the common ZTS scripts and individual test cases as needed
in order to allow them to be run on FreeBSD. The high level goal
is to provide compatibility wrappers whenever possible to minimize
changes to individual test cases.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9692
Diffstat (limited to 'tests/zfs-tests/include/default.cfg.in')
-rw-r--r-- | tests/zfs-tests/include/default.cfg.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/zfs-tests/include/default.cfg.in b/tests/zfs-tests/include/default.cfg.in index e1e2a7e91..52a03533c 100644 --- a/tests/zfs-tests/include/default.cfg.in +++ b/tests/zfs-tests/include/default.cfg.in @@ -143,7 +143,7 @@ export SPA_MINDEVSIZE=$((64 * 1024 * 1024)) # For iscsi target support export ISCSITGTFILE=/tmp/iscsitgt_file export ISCSITGT_FMRI=svc:/system/iscsitgt:default -if ! is_linux; then +if ! is_linux && ! is_freebsd; then export AUTO_SNAP=$(svcs -a | grep auto-snapshot | grep online | awk \ '{print $3}') fi @@ -184,6 +184,20 @@ if is_linux; then NEWFS_DEFAULT_FS="ext2" +elif is_freebsd; then + unpack_opts="xv" + pack_opts="cf" + verbose="v" + unpack_preserve="xpf" + pack_preserve="cpf" + + ZVOL_DEVDIR="/dev/zvol" + ZVOL_RDEVDIR="/dev/zvol" + DEV_DSKDIR="/dev" + DEV_RDSKDIR="/dev" + DEV_MPATHDIR="/dev/multipath" + + NEWFS_DEFAULT_FS="ufs" else unpack_opts="xv" pack_opts="cf" |