mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 11:44:16 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9692
This commit is contained in:
committed by
Brian Behlendorf
parent
118fc3ef07
commit
7839c4b5e1
@@ -54,6 +54,32 @@ if is_linux; then
|
||||
off /tmp/zfstest 100M off \
|
||||
512 10m off \
|
||||
hidden"
|
||||
elif is_freebsd; then
|
||||
PROP_NAMES="\
|
||||
acltype atime \
|
||||
checksum compression devices \
|
||||
exec mountpoint quota readonly \
|
||||
recordsize reservation setuid \
|
||||
snapdir"
|
||||
|
||||
# these are a set of values we apply, for use when testing the
|
||||
# zfs get/set subcommands - ordered as per the list above so we
|
||||
# can iterate over both sets in an array
|
||||
PROP_VALS="\
|
||||
posixacl on \
|
||||
fletcher2 on on \
|
||||
on legacy none on \
|
||||
128K none on \
|
||||
visible"
|
||||
|
||||
# these are an alternate set of property values
|
||||
PROP_ALTVALS="\
|
||||
noacl off \
|
||||
fletcher4 lzjb off \
|
||||
off /tmp/zfstest 100M off \
|
||||
512 10m off \
|
||||
hidden"
|
||||
|
||||
else
|
||||
# these are the set of setable ZFS properties
|
||||
PROP_NAMES="\
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
verify_runnable "global"
|
||||
|
||||
if is_linux; then
|
||||
if is_linux || is_freebsd; then
|
||||
log_unsupported "Requires additional dependencies"
|
||||
fi
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
verify_runnable "global"
|
||||
|
||||
if is_linux; then
|
||||
if is_linux || is_freebsd; then
|
||||
log_unsupported "Requires additional dependencies"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user