diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-24 23:21:08 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-24 23:21:08 +0000 |
commit | 0c78285df9e4269f7b7d872c49de9f16c83ae85f (patch) | |
tree | b97c38b6c751c5c4872361b58b57fb9b7bac6248 | |
parent | 2606773d93c3787d9c218e240d44613ca0320dce (diff) | |
download | FreeBSD-src-0c78285df9e4269f7b7d872c49de9f16c83ae85f.zip FreeBSD-src-0c78285df9e4269f7b7d872c49de9f16c83ae85f.tar.gz |
Add a regression test for r289899 to validate rockridge encoding
of device types
X-MFC with: r289899
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
-rwxr-xr-x | usr.sbin/makefs/tests/makefs_cd9660_tests.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/usr.sbin/makefs/tests/makefs_cd9660_tests.sh b/usr.sbin/makefs/tests/makefs_cd9660_tests.sh index 5edd618..e476cf1 100755 --- a/usr.sbin/makefs/tests/makefs_cd9660_tests.sh +++ b/usr.sbin/makefs/tests/makefs_cd9660_tests.sh @@ -271,6 +271,32 @@ o_flag_rockridge_cleanup() common_cleanup } +atf_test_case o_flag_rockridge_dev_nodes cleanup +o_flag_rockridge_dev_nodes_head() +{ + atf_set "descr" "Functional tests to ensure that dev nodes are handled properly with rockridge extensions (NetBSD kern/48852; FreeBSD bug 203648)" +} +o_flag_rockridge_dev_nodes_body() +{ + create_test_dirs + + (tar -cvf - -C /dev null && touch .tar_ok) | \ + atf_check -e not-empty -o empty -s exit:0 tar -xvf - -C "$TEST_INPUTS_DIR" + + atf_check -e empty -o empty -s exit:0 test -c $TEST_INPUTS_DIR/null + atf_check -e empty -o empty -s exit:0 test -f .tar_ok + + atf_check -e empty -o empty -s exit:0 \ + $MAKEFS -o rockridge $TEST_IMAGE $TEST_INPUTS_DIR + + mount_image + check_image_contents +} +o_flag_rockridge_dev_nodes_cleanup() +{ + common_cleanup +} + atf_init_test_cases() { atf_add_test_case D_flag @@ -285,4 +311,5 @@ atf_init_test_cases() atf_add_test_case o_flag_preparer atf_add_test_case o_flag_publisher atf_add_test_case o_flag_rockridge + atf_add_test_case o_flag_rockridge_dev_nodes } |