aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/makefs/tests/makefs_ffs_tests.sh
Commit message (Collapse)AuthorAgeFilesLines
* Revert r362390, those tests are fixed by r362418Li-Wen Hsu2020-06-231-24/+0
| | | | | | | | PR: 247425 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=362551
* Skip ufs related tests in fstyp(8) and makefs(8) temporarilyLi-Wen Hsu2020-06-191-0/+24
| | | | | | | | | | They are failing after r362358 and r362359. PR: 247425 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=362390
* makefs(8): add test case for PR 229929Alan Somers2018-07-211-2/+27
| | | | | | | | | | | | | Fix two failing makefs test cases by adding "-M 1m", which was already used for every other FFS test case. Add a new test case for the underlying issue: with no -M, -m, or -s options, makefs can underestimate image size. PR: 229929 Reported by: Jenkins MFC after: 2 weeks Notes: svn path=/head/; revision=336582
* Fix usr.sbin/makefs/makefs_ffs_tests when /etc/fstab does not existAlan Somers2017-06-201-2/+2
| | | | | | | | | | | | | dumpfs prints a harmless warning message (via ufs_disk_fillout(3) and getfsfile(3)), when /etc/fstab does not exist. We can ignore it. PR: 220165 Reported by: gjb MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=320163
* Add testcases for -t ffs -o version=[12]Enji Cooper2015-11-021-1/+66
| | | | | | | | | | | Verify the filesystem type using dumpfs. Add preliminary support for NetBSD (needs to be validated) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290270
* Clean up mtree keyword support a slight bit and add a few more default keywordsEnji Cooper2015-11-021-1/+1
| | | | | | | | | | | | - Parameterize the mtree keywords as $DEFAULT_MTREE_KEYWORDS - Test with the extra mtree keywords, `mode,gid,uid`. - Add a note about mtrees with time support not working with makefs right now MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290267
* Add more cd9660/FFS makefs testcasesEnji Cooper2015-10-241-15/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | General changes: - Parameterize out the mount command. - Use mtree to verify the contents of an image (check_image_contents) instead of using diff (diff verifies content, but not file metadata). - Move common logic out to functions (common_cleanup, mount_image, check_image_contents) - Add stub testcases for makefs -D (crashes with SIGBUS, similar to bug # 192839) - Add a note about the ISO-9660 and rockridge specs - Add testcases that exercise: -- Creating disk images from an mtree and multiple directories. -- -F flag use (not really an extensive testcase right now) cd9660-specific test changes: - Remove an XXX comment about symlinks; I forgot that non-rockridge images turn symlinks into hardlinks. - Add testcases that exercise: -- -o allow-deep-trees -- -o allow-max-name stub testcase (doesn't seem to be implemented in makefs) -- -o preparer (existence in image; not conformance to spec) -- -o publisher (existence in image; not conformance to spec) -- -o rockridge (basic) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289897
* Revise "create_test_inputs" to simplify the file structure asEnji Cooper2015-10-221-4/+2
| | | | | | | | | | | | | | | | | | | | | | | these testcases don't need to be nested as much as bin/ls/ls_tests.sh do when verifying ls -a, ls -A, etc. This allows the tests to make all paths relative to the top of the temporary directory instead of always tacking on $ATF_TMPDIR, thus complicating things unnecessarily Create non-empty files in create_test_inputs as well now, similar to create_test_inputs2 in bin/ls/ls_tests.sh Compare the input files to the output file contents using diff where possible: - Skip over the fifo comparison for now because it always fails - Skip over the symlink comparison on cd9660 because it always fails today Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks X-MFC with: r289739 Notes: svn path=/head/; revision=289743
* Correctly reintroduce the rudimentary smoke tests I botched upEnji Cooper2015-10-221-0/+64
| | | | | | | | | | in r289684 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289739
* Revert r289694Enji Cooper2015-10-211-64/+0
| | | | | | | I committed some other undesirable local changes by accident Notes: svn path=/head/; revision=289695
* Add some rudimentary [smoke] testcases for makefsEnji Cooper2015-10-211-0/+64
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289694