diff options
author | Elliott Hughes <enh@google.com> | 2019-06-24 22:35:29 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-06-25 11:52:25 -0500 |
commit | 600baebaced399f4a5528515811ac43428a7bc30 (patch) | |
tree | b730d5416aa0850c55b863ab0ea0b49e09cecc44 /tests | |
parent | 96231a5a77dc1c3c0e84eb78e6dd7574505928eb (diff) | |
download | toybox-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.test | 4 |
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" "" "" |