From fff6de7b0460071cf035226617e59524b267774c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Jan 1998 11:54:39 +0000 Subject: *** empty log message *** --- tests/ls/time-1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/ls/time-1') 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 -- cgit v1.2.3-70-g09d2