]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 11:54:39 +0000 (11:54 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 11:54:39 +0000 (11:54 +0000)
tests/ls/time-1

index 546331d8832c219b25243dc373c0f5cda1f09cf8..90960d9f91c51c3c5cf2ed6c08a49c937eb463c2 100755 (executable)
@@ -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