aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-24 22:35:29 -0700
committerRob Landley <rob@landley.net>2019-06-25 11:52:25 -0500
commit600baebaced399f4a5528515811ac43428a7bc30 (patch)
treeb730d5416aa0850c55b863ab0ea0b49e09cecc44 /tests
parent96231a5a77dc1c3c0e84eb78e6dd7574505928eb (diff)
downloadtoybox-600baebaced399f4a5528515811ac43428a7bc30.tar.gz
tar: implement --mode.
Used by build/make/tools/mktarball.sh in AOSP. (Which is why today's switch to toybox tar got reverted.)
Diffstat (limited to 'tests')
-rw-r--r--tests/tar.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tar.test b/tests/tar.test
index dbc3ad7c..f1703644 100644
--- a/tests/tar.test
+++ b/tests/tar.test
@@ -51,6 +51,10 @@ testing "pass mtime" \
"tar c --owner root --group root file | LST --full-time" \
"-rw-rw-r-- root/root 0 1987-01-23 12:34:56 file\n" "" ""
+testing "adjust mode" \
+ "tar c --owner root --group root --mode a+x file | LST --full-time" \
+ "-rwxrwxr-x root/root 0 1987-01-23 12:34:56 file\n" "" ""
+
mkdir dir
testing "create dir" "$TAR dir | $SUM" \
"05739c423d7d4a7f12b3dbb7c94149acb2bb4f8d\n" "" ""