diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-10 11:54:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-10 11:54:39 +0000 |
commit | fff6de7b0460071cf035226617e59524b267774c (patch) | |
tree | 5a2742a1a4d1fbabb30340be858a13235df4fd01 /tests/ls | |
parent | cc76db201696c6fc9ea50a6cc9b2b667a4b12712 (diff) | |
download | coreutils-fff6de7b0460071cf035226617e59524b267774c.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests/ls')
-rwxr-xr-x | tests/ls/time-1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ls/time-1 b/tests/ls/time-1 index 546331d88..90960d9f9 100755 --- a/tests/ls/time-1 +++ b/tests/ls/time-1 @@ -1,4 +1,5 @@ #!/bin/sh +# Test some of ls's sorting options. : ${LS=ls} test=time-1 @@ -24,6 +25,11 @@ cd $tmp || test_failure=1 : > a || test_failure=1 sleep 1 : > b || test_failure=1 +: > c || test_failure=1 +sleep 1 +cat a || test_failure=1 + +mv c d || test_failure=1 if test $test_failure = 1; then echo 'failure in testing framework' @@ -32,8 +38,14 @@ fi fail=0 set `$LS -u a b` +test "$*" = 'a b' && : || fail=1 + +set `$LS -t a b` test "$*" = 'b a' && : || fail=1 +set `$LS -c a d` +test "$*" = 'd a' && : || fail=1 + cd .. rm -rf $tmp |