From 729f1de79c7c24745716f6781457fd46b58c456d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 23 Mar 2020 18:32:04 -0700 Subject: tar: implement --absolute-names. Used by the Linux kernel build when copying kernel headers to kernel-headers.tar.gz. Bug: http://b/152244851 --- tests/tar.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/tar.test') 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' \ -- cgit v1.2.3