summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2018-01-18 00:43:40 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2018-01-18 00:46:18 +0100
commitcc285a9fa6dadcffc03350b18c05ce9ee95360d5 (patch)
tree96f97edb589b7a5ef841b7528005b48fdf085447 /test/src
parentf63e72522f48ec628b44864310307661e393a23b (diff)
downloadexim4-cc285a9fa6dadcffc03350b18c05ce9ee95360d5.tar.gz
Testsuite: Use more force to find postgresql binaries
Diffstat (limited to 'test/src')
-rwxr-xr-xtest/src/locate.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/src/locate.sh b/test/src/locate.sh
new file mode 100755
index 000000000..87a82b911
--- /dev/null
+++ b/test/src/locate.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+[ -d bin.sys ] || mkdir bin.sys
+cd bin.sys
+
+while [ $# -gt 0 ]
+do
+ while read d
+ do
+ if [ -x $d/$1 ]
+ then
+ rm -f ./$1
+ ln -s $d/$1 .
+ break
+ fi
+ done <<-HERE
+ /bin
+ /usr/bin
+ /usr/sbin
+ /usr/libexec
+ /usr/local/bin
+ `find /usr/lib/postgresql -name bin -type d`
+HERE
+ shift
+done
+