Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/cddl/zfs/tests/atime/atime_test.sh
Show All 24 Lines | |||||
# Use is subject to license terms. | # Use is subject to license terms. | ||||
# | # | ||||
atf_test_case atime_001_pos cleanup | atf_test_case atime_001_pos cleanup | ||||
atime_001_pos_head() | atime_001_pos_head() | ||||
{ | { | ||||
atf_set "descr" "Setting atime=on, the access time for files is updated when read." | atf_set "descr" "Setting atime=on, the access time for files is updated when read." | ||||
atf_set "require.progs" zfs | atf_set "require.progs" "ksh93 zfs" | ||||
} | } | ||||
atime_001_pos_body() | atime_001_pos_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/atime_common.kshlib | . $(atf_get_srcdir)/atime_common.kshlib | ||||
. $(atf_get_srcdir)/atime.cfg | . $(atf_get_srcdir)/atime.cfg | ||||
verify_disk_count "$DISKS" 1 | verify_disk_count "$DISKS" 1 | ||||
Show All 9 Lines | atime_001_pos_cleanup() | ||||
ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" | ||||
} | } | ||||
atf_test_case atime_002_neg cleanup | atf_test_case atime_002_neg cleanup | ||||
atime_002_neg_head() | atime_002_neg_head() | ||||
{ | { | ||||
atf_set "descr" "Setting atime=off, the access time for files will not be updatedwhen read." | atf_set "descr" "Setting atime=off, the access time for files will not be updatedwhen read." | ||||
atf_set "require.progs" zfs | atf_set "require.progs" "ksh93 zfs" | ||||
} | } | ||||
atime_002_neg_body() | atime_002_neg_body() | ||||
{ | { | ||||
. $(atf_get_srcdir)/../../include/default.cfg | . $(atf_get_srcdir)/../../include/default.cfg | ||||
. $(atf_get_srcdir)/atime_common.kshlib | . $(atf_get_srcdir)/atime_common.kshlib | ||||
. $(atf_get_srcdir)/atime.cfg | . $(atf_get_srcdir)/atime.cfg | ||||
verify_disk_count "$DISKS" 1 | verify_disk_count "$DISKS" 1 | ||||
Show All 19 Lines |