]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 11:00:46 +0000 (11:00 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 11:00:46 +0000 (11:00 +0000)
tests/ls/time-1 [new file with mode: 0755]

diff --git a/tests/ls/time-1 b/tests/ls/time-1
new file mode 100755 (executable)
index 0000000..c7929d5
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+: ${LS=ls}
+test=time-1
+
+if test "$VERBOSE" = yes; then
+  set -x
+  $LS --version
+fi
+
+tmp=t-ls.$$
+
+test_failure=0
+mkdir $tmp || test_failure=1
+cd $tmp || test_failure=1
+: > a || test_failure=1
+: > b || test_failure=1
+cat b || test_failure=1
+
+if test $test_failure = 1; then
+  echo 'failure in testing framework'
+  exit 1
+fi
+
+fail=0
+$LS -u a b > out || fail=1
+    cat out
+
+cd ..
+rm -rf $tmp
+
+exit $fail