Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / find / testsuite / binary_locations.sh
1 # Source this file, don't execute it.
2
3 if [[ -z "${testname}" ]]; then
4     echo 'Please set $testname before sourcing binary_locations.sh.' >&2
5     exit 1
6 fi
7
8 parent="$(cd .. && pwd)"
9 if [[ -f "${parent}/ftsfind" ]]; then
10     ftsfind="${parent}/ftsfind"
11     oldfind="${parent}/find"
12 elif [[ -f "${parent}/oldfind" ]]; then
13     ftsfind="${parent}/find"
14     oldfind="${parent}/oldfind"
15 else
16     echo "Cannot find the executables to test." >&2
17     exit 1
18 fi