summaryrefslogtreecommitdiff
path: root/tests/test-copy-file-1.sh
blob: b5669915903933792fecc92b9d7514bb811b28cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# Test copy-file on the file system of /var/tmp, which usually is a local
# file system.

. "${srcdir=.}/init.sh"; path_prepend_ .

if test -d /var/tmp; then
  TMPDIR=/var/tmp
else
  TMPDIR=/tmp
fi
test -d $TMPDIR || Exit 77
export TMPDIR

$BOURNE_SHELL "${srcdir}/test-copy-file.sh"
ret1=$?
NO_STDERR_OUTPUT=1 $BOURNE_SHELL "${srcdir}/test-copy-file.sh"
ret2=$?
case $ret1 in
  77 ) Exit $ret2 ;;
  * ) Exit $ret1 ;;
esac