]> git.proxmox.com Git - mirror_zfs.git/commit - tests/zfs-tests/include/libtest.shlib
Add auto-online test for ZED/FMA as part of the ZTS
authorSydney Vanda <sydney.m.vanda@intel.com>
Fri, 23 Sep 2016 20:51:08 +0000 (13:51 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Mar 2017 00:25:39 +0000 (16:25 -0800)
commitec0e24c232cac7afa801ca8d247f212c24eb02a3
tree4d9aba2b6be90aea7054ae9f19b6096aff917cf9
parent4859fe796c5b03687a7b2ab3735b882c4f5cad66
Add auto-online test for ZED/FMA as part of the ZTS

Automated auto-online test to go along with ZED FMA integration (PR 4673)
auto_online_001.pos works with real devices (sd- and mpath) and with non-real
block devices (loop) by adding a scsi_debug device to the pool

Note: In order for test group to run, ZED must not currently be running.
Kernel 3.16.37 or higher needed for scsi_debug to work properly
If timeout occurs on test using a scsi_debug device (error noticed on Ubuntu
system), a reboot might be needed in order for test to pass. (more
investigation into this)

Also suppressed output from is_real_device/is_loop_device/is_mpath_device -
was making the log file very cluttered with useless error messages
"ie /dev/mapper/sdc is not a block device" from previous patch

Reviewed-by: Don Brady <don.brady@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: David Quigley <david.quigley@intel.com>
Signed-off-by: Sydney Vanda <sydney.m.vanda@intel.com>
Closes #5774
13 files changed:
config/user-commands.m4
configure.ac
tests/runfiles/linux.run
tests/zfs-tests/include/commands.cfg.in
tests/zfs-tests/include/default.cfg.in
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/Makefile.am
tests/zfs-tests/tests/functional/fault/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/fault/auto_online_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/fault.cfg [new file with mode: 0644]
tests/zfs-tests/tests/functional/fault/setup.ksh [new file with mode: 0755]
zfs-script-config.sh.in