summaryrefslogtreecommitdiff
path: root/tests/ls/time-1
blob: c7929d5b64c69509879ff56e9cc4ddc04c86cafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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