aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-03-23 18:32:04 -0700
committerRob Landley <rob@landley.net>2020-03-23 20:46:49 -0500
commit729f1de79c7c24745716f6781457fd46b58c456d (patch)
treeeddd59d5c446415d2c244f9f38418b1e5f8cf91d /tests
parent5a6d1746baacb40e2a3f094af50dbe9871afa3cf (diff)
downloadtoybox-729f1de79c7c24745716f6781457fd46b58c456d.tar.gz
tar: implement --absolute-names.
Used by the Linux kernel build when copying kernel headers to kernel-headers.tar.gz. Bug: http://b/152244851
Diffstat (limited to 'tests')
-rw-r--r--tests/tar.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tar.test b/tests/tar.test
index 985cea5f..523faa67 100644
--- a/tests/tar.test
+++ b/tests/tar.test
@@ -148,6 +148,9 @@ testing "pass broken absolute symlink" "$TAR dir/linkabsbrok | LST" \
testing "pass /dev/null" \
"tar c --mtime @0 /dev/null 2>/dev/null | LST" \
"crw-rw-rw- root/root 1,3 1970-01-01 00:00 dev/null\n" "" ""
+testing "--absolute-names" \
+ "tar c --mtime @0 --absolute-names /dev/null 2>/dev/null | LST" \
+ "crw-rw-rw- root/root 1,3 1970-01-01 00:00 /dev/null\n" "" ""
# compression types
testing "autodetect gzip" 'LST -f "$FILES"/tar/tar.tgz' \