diff options
author | Elliott Hughes <enh@google.com> | 2017-04-14 13:43:16 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-04-17 12:31:14 -0500 |
commit | 151ac30a9fb2252f5fa77e0238c5f944d5b4659c (patch) | |
tree | f4fefded1c297e9fe701dc9a35fcff98756d5147 | |
parent | 060a9f3380c5c778ab100f52fe5d1a41b0fd8a6c (diff) | |
download | toybox-151ac30a9fb2252f5fa77e0238c5f944d5b4659c.tar.gz |
Make ls.test work without awk.
-rwxr-xr-x | tests/ls.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ls.test b/tests/ls.test index b29c478a..56f74034 100755 --- a/tests/ls.test +++ b/tests/ls.test @@ -33,8 +33,9 @@ testing "with -F" "$IN && ls -F; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" "" testing "with -dk *" "$IN && ls -dk *; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" "" ln -s file1.txt lstest/slink -testing "softlink - long listing" "$IN && ls -l slink | awk '{ print \$NF }' ; $OUT" \ - "file1.txt\n" "" "" +testing "-l symlink" \ + "$IN && ls -l slink | grep -q -- ' slink -> file1.txt' && echo ok ; $OUT" \ + "ok\n" "" "" rm -f lstest/slink ln -s /dev/null/nosuchfile lstest/nosuchfile |