From: Jim Meyering Date: Sat, 10 Jan 1998 11:54:39 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-3_16k~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fff6de7b0460071cf035226617e59524b267774c;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/ls/time-1 b/tests/ls/time-1 index 546331d883..90960d9f91 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