Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/cddl/zfs/tests/mount/mount_test.sh
Show All 24 Lines | |||||
# Use is subject to license terms. | # Use is subject to license terms. | ||||
# | # | ||||
atf_test_case umount_001 cleanup | atf_test_case umount_001 cleanup | ||||
umount_001_head() | umount_001_head() | ||||
{ | { | ||||
atf_set "descr" "zfs umount should unmount a file system" | atf_set "descr" "zfs umount should unmount a file system" | ||||
atf_set "require.progs" zfs | atf_set "require.progs" "ksh93 zfs" | ||||
} | } | ||||
umount_001_body() | umount_001_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/vars.cfg | . $(atf_get_srcdir)/vars.cfg | ||||
verify_disk_count "$DISKS" 1 | verify_disk_count "$DISKS" 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)/mounttest.ksh -u umount || \ | ksh93 $(atf_get_srcdir)/mounttest.ksh -u umount || \ | ||||
atf_fail "Testcase failed" | atf_fail "Testcase failed" | ||||
} | } | ||||
umount_001_cleanup() | umount_001_cleanup() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/vars.cfg | . $(atf_get_srcdir)/vars.cfg | ||||
ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ||||
} | } | ||||
atf_test_case umountall_001 cleanup | atf_test_case umountall_001 cleanup | ||||
umountall_001_head() | umountall_001_head() | ||||
{ | { | ||||
atf_set "descr" "zfs umount -a should unmount all ZFS file systems" | atf_set "descr" "zfs umount -a should unmount all ZFS file systems" | ||||
atf_set "require.progs" zfs | atf_set "require.progs" "ksh93 zfs" | ||||
} | } | ||||
umountall_001_body() | umountall_001_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/vars.cfg | . $(atf_get_srcdir)/vars.cfg | ||||
if other_pools_exist; then | if other_pools_exist; then | ||||
atf_skip "Can't test unmount -a with existing pools" | atf_skip "Can't test unmount -a with existing pools" | ||||
Show All 21 Lines |