]> granicus.if.org Git - zfs/commit
Add zpool events tests
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 May 2017 19:57:21 +0000 (15:57 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 May 2017 16:34:42 +0000 (12:34 -0400)
commit3f03fc8df3e74b3d9ee6eb3bd8bb656898ed7272
tree901c297b5ff5ad3861643dbcf793c7cf58054da5
parent5a6d6cf839fe547f2007912f60eac23827b4a8de
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 <behlendorf1@llnl.gov>
Closes #6128
18 files changed:
configure.ac
scripts/zfs-tests.sh
tests/runfiles/linux.run
tests/zfs-tests/include/.gitignore [new file with mode: 0644]
tests/zfs-tests/include/Makefile.am
tests/zfs-tests/include/default.cfg.in [moved from tests/zfs-tests/include/default.cfg with 95% similarity]
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_003_pos.ksh
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_005_pos.ksh
tests/zfs-tests/tests/functional/events/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/events/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/events/events.cfg [new file with mode: 0644]
tests/zfs-tests/tests/functional/events/events_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/events/events_002_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/events/events_common.kshlib [new file with mode: 0755]
tests/zfs-tests/tests/functional/events/setup.ksh [new file with mode: 0755]
zfs-script-config.sh.in