From owner-svn-src-head@freebsd.org Fri Jan 13 04:02:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EC18CAD7E2; Fri, 13 Jan 2017 04:02:10 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 252C115C3; Fri, 13 Jan 2017 04:02:10 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0D429qn038497; Fri, 13 Jan 2017 04:02:09 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0D429BI038495; Fri, 13 Jan 2017 04:02:09 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201701130402.v0D429BI038495@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Fri, 13 Jan 2017 04:02:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312010 - head/usr.sbin/fstyp/tests X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 04:02:10 -0000 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