diff options
author | Elliott Hughes <enh@google.com> | 2016-09-13 13:55:59 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-09-13 17:16:32 -0500 |
commit | 493dc573825a862ee533c8aaf91ab23112b591c2 (patch) | |
tree | 8d9852393103841f0b3ec1ca7c2a0c99225d7e47 /tests/file.test | |
parent | 9f42e832a186bb3f5320581a3a713d0a8a9c8384 (diff) | |
download | toybox-493dc573825a862ee533c8aaf91ab23112b591c2.tar.gz |
Add -h and -L to file.
On a toybox system, most of your bin directory is symbolic links.
Bug: http://b/31294746
Diffstat (limited to 'tests/file.test')
-rw-r--r-- | tests/file.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/file.test b/tests/file.test index 234282f9..4c7f001c 100644 --- a/tests/file.test +++ b/tests/file.test @@ -10,6 +10,7 @@ echo "#! /bin/bash" > bash.script2 echo "#! /usr/bin/env python" > env.python.script echo "Hello, world!" > ascii echo "cafebabe000000310000" | xxd -r -p > java.class +ln -s java.class symlink testing "empty" "file empty" "empty: empty\n" "" "" testing "bash.script" "file bash.script" "bash.script: /bin/bash script\n" "" "" @@ -17,5 +18,8 @@ testing "bash.script with spaces" "file bash.script2" "bash.script2: /bin/bash s testing "env python script" "file env.python.script" "env.python.script: python script\n" "" "" testing "ascii" "file ascii" "ascii: ASCII text\n" "" "" testing "java class" "file java.class" "java.class: Java class file, version 49.0\n" "" "" +testing "symlink" "file symlink" "symlink: symbolic link\n" "" "" +testing "symlink -h" "file -h symlink" "symlink: symbolic link\n" "" "" +testing "symlink -L" "file -L symlink" "symlink: Java class file, version 49.0\n" "" "" rm empty bash.script bash.script2 env.python.script ascii java.class |