History log of /freebsd-current/usr.sbin/makefs/tests/makefs_cd9660_tests.sh
Revision Date Author Comments
# 90aad5d3 30-Mar-2023 Ed Maste <emaste@FreeBSD.org>

makefs: clean up some leftovers after $FreeBSD$ tag removal

Fixes: 2a63c3be1582


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 21add93b 23-Mar-2022 Mark Johnston <markj@FreeBSD.org>

makefs: Remove execute permission from in-tree test scripts

Let the build system set it as needed. No functional change intended.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation


# 46b59ac8 02-Feb-2018 Brooks Davis <brooks@FreeBSD.org>

Check for cd9660 support before attempting to mount created images

This extends the set in r316028 to allow all tests to pass or be skipped
on a system without cd9660 support.

A better approach using tar is possible, but this works today.

Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10516


# a2aef24a 29-Oct-2017 Eitan Adler <eadler@FreeBSD.org>

Update several more URLs

- Primarily http -> https
- Primarily FreeBSD project URLs


# d2435d7c 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Require strings(1) with :o_flag_preparer and :o_flag_publisher

strings(1) might not be installed on the system, e.g., if MK_TOOLCHAIN == no

MFC after: 1 week


# f43b6872 27-Mar-2017 Brad Davis <brd@FreeBSD.org>

Check to see if the kernel has cd9660 before running tests that require it

Approved by: ngie
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D10096


# c213f0db 02-Nov-2015 Enji Cooper <ngie@FreeBSD.org>

Clean up mtree keyword support a slight bit and add a few more default keywords

- 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


# 10bd2725 02-Nov-2015 Enji Cooper <ngie@FreeBSD.org>

Add testcases for -t cd9660 -o isolevel=[1-3]

-- -o isolevel=1 currently fails because of path comparison issues,
so mark it as an expected failure.
-- -o isolevel=3 is not implemented, so expect it to fail as an out
of bounds value [*].

PR: 203645
MFC after: 1 week
X-MFC with: r290264
Sponsored by: EMC / Isilon Storage Division


# dc50fb36 24-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Add a regression test for r289899 to validate rockridge encoding
of device types

X-MFC with: r289899
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division


# fc2b0536 24-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

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


# 66845bf5 22-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Revise "create_test_inputs" to simplify the file structure as
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


# 7bdfc3b7 21-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Correctly reintroduce the rudimentary smoke tests I botched up
in r289684

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division


# 6cf8c0fe 21-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Revert r289694

I committed some other undesirable local changes by accident


# b4c3ec12 21-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Add some rudimentary [smoke] testcases for makefs

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division