freebsd-dev/usr.sbin/makefs
Enji Cooper fc2b053656 Add more cd9660/FFS makefs testcases
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
2015-10-24 22:12:23 +00:00
..
cd9660 Revert r289694 2015-10-21 13:15:04 +00:00
ffs makefs(8) leaves sblock.fs_providersize uninitialized (zero) that can be easily 2015-10-13 17:00:14 +00:00
tests Add more cd9660/FFS makefs testcases 2015-10-24 22:12:23 +00:00
cd9660.c Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
cd9660.h Allow contents of multiple directories to be merged to the current image. 2012-01-31 00:32:37 +00:00
ffs.c makefs: introduce a new option to specify what to round the resulting 2015-10-13 02:32:15 +00:00
ffs.h Add support to makefs(8) to add UFS labels to images. 2011-10-09 16:22:31 +00:00
Makefile Correctly reintroduce the rudimentary smoke tests I botched up 2015-10-22 05:32:45 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
makefs.8 Revert r289694 2015-10-21 13:15:04 +00:00
makefs.c Revert r289694 2015-10-21 13:15:04 +00:00
makefs.h makefs: introduce a new option to specify what to round the resulting 2015-10-13 02:32:15 +00:00
mtree.c Don't leak 'var'. 2015-09-03 01:15:23 +00:00
walk.c Remove duplicated copies of various NetBSD compatibility shims used by 2013-05-09 14:43:36 +00:00