Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Details
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
LGTM. BTW, if you want this to run in FreeBSD's own CI, you should add gtar to https://github.com/freebsd/freebsd-ci/blob/1b56d3fb6cbec4ac4864e42cad056ecf0d0bf474/scripts/build/build-test_image-head.sh#L63 .
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) |
tests/sys/fs/tarfs/tarfs_test.sh | ||
---|---|---|
36–38 | Why does gtar require --posix --absolute-names, but bsdtar doesn't? |
tests/sys/fs/tarfs/tarfs_test.sh | ||
---|---|---|
36–38 | A comment is a good idea. |
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. |