Add testcase for exFAT that currently fails

Disk image obtained from:
http://www.cfreds.nist.gov/dfr-images/dfr-01-xfat.dd.bz2 -- was ripped off the
first GPT partition and verified to be a FAT-like partition with file(1)/hexdump.

This testcase currently fails

PR:		214908
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-01-13 04:02:09 +00:00
parent cebf8a2ca7
commit 6f81c4d9bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312010
3 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,7 @@ PACKAGE= tests
ATF_TESTS_SH= fstyp_test
${PACKAGE}FILES+= dfr-01-xfat.img.bz2
${PACKAGE}FILES+= ext2.img.bz2
${PACKAGE}FILES+= ext3.img.bz2
${PACKAGE}FILES+= ext4.img.bz2

Binary file not shown.

View File

@ -58,6 +58,15 @@ dir_body() {
atf_check -s exit:1 -e match:"not a disk" fstyp dir
}
atf_test_case exfat
exfat_head() {
atf_set "descr" "fstyp(8) can detect exFAT filesystems"
}
exfat_body() {
bzcat $(atf_get_srcdir)/dfr-01-xfat.dd.bz2 > exfat.img
atf_check -s exit:0 -o inline:"exfat\n" fstyp exfat.img
}
atf_test_case empty
empty_head() {
atf_set "descr" "fstyp(8) should fail on an empty file"
@ -242,6 +251,7 @@ atf_init_test_cases() {
atf_add_test_case cd9660_label
atf_add_test_case dir
atf_add_test_case empty
atf_add_test_case exfat
atf_add_test_case ext2
atf_add_test_case ext3
atf_add_test_case ext4