Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164913349
D49492.id152649.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49492.id152649.diff
View Options
diff --git a/usr.sbin/makefs/tests/makefs_cd9660_tests.sh b/usr.sbin/makefs/tests/makefs_cd9660_tests.sh
--- a/usr.sbin/makefs/tests/makefs_cd9660_tests.sh
+++ b/usr.sbin/makefs/tests/makefs_cd9660_tests.sh
@@ -374,6 +374,34 @@
common_cleanup
}
+atf_test_case T_flag_rockridge_tf cleanup
+T_flag_rockridge_tf_head()
+{
+ atf_set "descr" "cd9660 RockRidge extensions honor timestamp provided by -T"
+}
+
+T_flag_rockridge_tf_body()
+{
+ timestamp=1742574909
+ check_cd9660_support
+ create_test_dirs
+
+ mkdir -p $TEST_INPUTS_DIR/dir1
+ atf_check -e empty -o empty -s exit:0 \
+ $MAKEFS -T $timestamp -o rockridge $TEST_IMAGE $TEST_INPUTS_DIR
+
+ mount_image
+ eval $(stat -s $TEST_MOUNT_DIR/dir1)
+ atf_check_equal $st_atime $timestamp
+ atf_check_equal $st_mtime $timestamp
+ atf_check_equal $st_ctime $timestamp
+}
+
+T_flag_rockridge_tf_cleanup()
+{
+ common_cleanup
+}
+
atf_test_case duplicate_names cleanup
duplicate_names_head()
{
@@ -425,6 +453,7 @@
atf_add_test_case o_flag_publisher
atf_add_test_case o_flag_rockridge
atf_add_test_case o_flag_rockridge_dev_nodes
+ atf_add_test_case T_flag_rockridge_tf
atf_add_test_case duplicate_names
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 7:01 PM (4 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36046273
Default Alt Text
D49492.id152649.diff (1 KB)
Attached To
Mode
D49492: makefs: Add tests for the -T flag
Attached
Detach File
Event Timeline
Log In to Comment