Page MenuHomeFreeBSD

tarfs: Repeat tests using GNU tar if available.
ClosedPublic

Authored by des on Mar 10 2023, 5:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 4:40 PM
Unknown Object (File)
Thu, May 2, 10:54 AM
Unknown Object (File)
Thu, May 2, 10:53 AM
Unknown Object (File)
Thu, May 2, 9:52 AM
Unknown Object (File)
Thu, May 2, 9:28 AM
Unknown Object (File)
Jan 14 2024, 7:23 AM
Unknown Object (File)
Dec 20 2023, 5:56 AM
Unknown Object (File)
Nov 8 2023, 1:41 PM
Subscribers

Details

Summary

Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Mar 10 2023, 5:49 PM
This revision is now accepted and ready to land.Mar 10 2023, 9:13 PM
ngie added a subscriber: ngie.

This is a bit of additional boilerplate that would be nice to DRY. Not needed now, but it would be a good idea to create a for-loop that generates test cases for gtar/non-gtar within atf_init_test_cases, if possible.

tests/sys/fs/tarfs/tarfs_test.sh
139

(picking a line)
These descriptions should really be improved -- they're referencing old issues, but not describing what's actually being tested.

tests/sys/fs/tarfs/tarfs_test.sh
36–38

Why does gtar require --posix --absolute-names, but bsdtar doesn't?
(seems deserving of a comment)

tests/sys/fs/tarfs/tarfs_test.sh
36–38

A comment is a good idea.
The gnutar man page (at least the version we use at work) speaks at length about how non-POSIX compatible it is. Using --posix is sufficient (in my tests) to get an approximately valid tar file from tarfs pov. Not sure about --absolute-names.

des marked 3 inline comments as done.Mar 14 2023, 12:23 AM
des added inline comments.
tests/sys/fs/tarfs/tarfs_test.sh
36–38

It prevents gtar from sanitising paths (e.g. a/../b -> b which bsdtar doesn't do), which would render the test partly moot because we want to verify that tarfs handles unsanitized paths correctly.

139

That's what we have a bug tracker and version history for. I'm not going to write an essay in the test description.

des marked 2 inline comments as done.Mar 14 2023, 12:23 AM
This revision was automatically updated to reflect the committed changes.