Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/cddl/zfs/tests/write_dirs/write_dirs_test.sh
Show All 24 Lines | |||||
# Use is subject to license terms. | # Use is subject to license terms. | ||||
# | # | ||||
atf_test_case write_dirs_001_pos cleanup | atf_test_case write_dirs_001_pos cleanup | ||||
write_dirs_001_pos_head() | write_dirs_001_pos_head() | ||||
{ | { | ||||
atf_set "descr" "Creating directories with 50 big files in each, until file systemis full." | atf_set "descr" "Creating directories with 50 big files in each, until file systemis full." | ||||
atf_set "require.progs" zpool | atf_set "require.progs" "ksh93 zpool" | ||||
atf_set "timeout" 1200 | atf_set "timeout" 1200 | ||||
} | } | ||||
write_dirs_001_pos_body() | write_dirs_001_pos_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/write_dirs.cfg | . $(atf_get_srcdir)/write_dirs.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)/write_dirs_001_pos.ksh || atf_fail "Testcase failed" | ksh93 $(atf_get_srcdir)/write_dirs_001_pos.ksh || atf_fail "Testcase failed" | ||||
} | } | ||||
write_dirs_001_pos_cleanup() | write_dirs_001_pos_cleanup() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/write_dirs.cfg | . $(atf_get_srcdir)/write_dirs.cfg | ||||
ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ||||
} | } | ||||
atf_test_case write_dirs_002_pos cleanup | atf_test_case write_dirs_002_pos cleanup | ||||
write_dirs_002_pos_head() | write_dirs_002_pos_head() | ||||
{ | { | ||||
atf_set "descr" "Creating directories with 5000 files in each, until file systemis full." | atf_set "descr" "Creating directories with 5000 files in each, until file systemis full." | ||||
atf_set "require.progs" zpool | atf_set "require.progs" "ksh93 zpool" | ||||
atf_set "timeout" 1200 | atf_set "timeout" 1200 | ||||
} | } | ||||
write_dirs_002_pos_body() | write_dirs_002_pos_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/write_dirs.cfg | . $(atf_get_srcdir)/write_dirs.cfg | ||||
verify_disk_count "$DISKS" 1 | verify_disk_count "$DISKS" 1 | ||||
Show All 18 Lines |