Differential D29066 Diff 85154 tests/sys/cddl/zfs/tests/cli_root/zpool_history/zpool_history_test.sh
Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/cddl/zfs/tests/cli_root/zpool_history/zpool_history_test.sh
Show All 24 Lines | |||||
# Use is subject to license terms. | # Use is subject to license terms. | ||||
# | # | ||||
atf_test_case zpool_history_001_neg cleanup | atf_test_case zpool_history_001_neg cleanup | ||||
zpool_history_001_neg_head() | zpool_history_001_neg_head() | ||||
{ | { | ||||
atf_set "descr" "Verify 'zpool history' can deal with non-existent pools andgarbage to the command." | atf_set "descr" "Verify 'zpool history' can deal with non-existent pools andgarbage to the command." | ||||
atf_set "require.progs" zfs zpool | atf_set "require.progs" "ksh93 zfs zpool" | ||||
} | } | ||||
zpool_history_001_neg_body() | zpool_history_001_neg_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../../include/default.cfg | . $(atf_get_srcdir)/../../../include/default.cfg | ||||
. $(atf_get_srcdir)/zpool_history.cfg | . $(atf_get_srcdir)/zpool_history.cfg | ||||
verify_disk_count "$DISK" 1 | verify_disk_count "$DISK" 1 | ||||
ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" | ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" | ||||
ksh93 $(atf_get_srcdir)/zpool_history_001_neg.ksh || atf_fail "Testcase failed" | ksh93 $(atf_get_srcdir)/zpool_history_001_neg.ksh || atf_fail "Testcase failed" | ||||
} | } | ||||
zpool_history_001_neg_cleanup() | zpool_history_001_neg_cleanup() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../../include/default.cfg | . $(atf_get_srcdir)/../../../include/default.cfg | ||||
. $(atf_get_srcdir)/zpool_history.cfg | . $(atf_get_srcdir)/zpool_history.cfg | ||||
ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ||||
} | } | ||||
atf_test_case zpool_history_002_pos cleanup | atf_test_case zpool_history_002_pos cleanup | ||||
zpool_history_002_pos_head() | zpool_history_002_pos_head() | ||||
{ | { | ||||
atf_set "descr" "Verify zpool history can handle options [-il] correctly." | atf_set "descr" "Verify zpool history can handle options [-il] correctly." | ||||
atf_set "require.progs" zfs zpool | atf_set "require.progs" "ksh93 zfs zpool" | ||||
} | } | ||||
zpool_history_002_pos_body() | zpool_history_002_pos_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../../include/default.cfg | . $(atf_get_srcdir)/../../../include/default.cfg | ||||
. $(atf_get_srcdir)/zpool_history.cfg | . $(atf_get_srcdir)/zpool_history.cfg | ||||
verify_disk_count "$DISK" 1 | verify_disk_count "$DISK" 1 | ||||
ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" | ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" | ||||
Show All 17 Lines |