From 3f03fc8df3e74b3d9ee6eb3bd8bb656898ed7272 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 18 May 2017 15:57:21 -0400 Subject: 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 Closes #6128 --- scripts/zfs-tests.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/zfs-tests.sh') 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. -- cgit v1.2.3