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

# Test copy-file on the file system of the build directory, which may be
# a local file system or NFS mounted.

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

TMPDIR=`pwd`
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