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)
Oct 9 2024, 12:30 AM
Unknown Object (File)
Sep 27 2024, 2:28 PM
Unknown Object (File)
Sep 24 2024, 4:20 PM
Unknown Object (File)
Sep 21 2024, 1:15 PM
Unknown Object (File)
Sep 17 2024, 11:31 AM
Unknown Object (File)
Sep 16 2024, 7:21 AM
Unknown Object (File)
Sep 15 2024, 2:57 PM
Unknown Object (File)
Sep 7 2024, 9:27 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50280
Build 47172: arc lint + arc unit

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.