Author: ngie
Date: Fri Jan 13 04:02:09 2017
New Revision: 312010
URL: https://svnweb.freebsd.org/changeset/base/312010

Log:
  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

Added:
  head/usr.sbin/fstyp/tests/dfr-01-xfat.img.bz2   (contents, props changed)
Modified:
  head/usr.sbin/fstyp/tests/Makefile
  head/usr.sbin/fstyp/tests/fstyp_test.sh

Modified: head/usr.sbin/fstyp/tests/Makefile
==============================================================================
--- head/usr.sbin/fstyp/tests/Makefile  Fri Jan 13 03:42:51 2017        
(r312009)
+++ head/usr.sbin/fstyp/tests/Makefile  Fri Jan 13 04:02:09 2017        
(r312010)
@@ -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

Added: head/usr.sbin/fstyp/tests/dfr-01-xfat.img.bz2
==============================================================================
Binary file. No diff available.

Modified: head/usr.sbin/fstyp/tests/fstyp_test.sh
==============================================================================
--- head/usr.sbin/fstyp/tests/fstyp_test.sh     Fri Jan 13 03:42:51 2017        
(r312009)
+++ head/usr.sbin/fstyp/tests/fstyp_test.sh     Fri Jan 13 04:02:09 2017        
(r312010)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to