summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2017-05-18 15:57:21 -0400
committerBrian Behlendorf <[email protected]>2017-05-22 12:34:42 -0400
commit3f03fc8df3e74b3d9ee6eb3bd8bb656898ed7272 (patch)
tree901c297b5ff5ad3861643dbcf793c7cf58054da5 /scripts
parent5a6d6cf839fe547f2007912f60eac23827b4a8de (diff)
Add zpool events tests
* events_001_pos - Verify the expected events are generated when invoking the various zpool sub-commands. These events must appear in `zpool event` and be consumed by the ZED. * events_002_pos - Verify the ZED consumes events which were generated while it wasn't running when it is started. Additionally, verify that events are only processed once. As part of this change the default.cfg used by the test suite was changed to a default.cfg.in file. This was needed so the install location of all zed scripts, not only the enabled ones, could be reliably determined. Signed-off-by: Brian Behlendorf <[email protected]> Closes #6128
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/zfs-tests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/zfs-tests.sh b/scripts/zfs-tests.sh
index f17f1e19f..3208b8df2 100755
--- a/scripts/zfs-tests.sh
+++ b/scripts/zfs-tests.sh
@@ -401,6 +401,8 @@ constrain_path
# Check if ksh exists
#
[ -e "$STF_PATH/ksh" ] || fail "This test suite requires ksh."
+[ -e "$STF_SUITE/include/default.cfg" ] || fail \
+ "Missing $STF_SUITE/include/default.cfg file."
#
# Verify the ZFS module stack if loaded.