summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-27 12:44:20 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-28 17:57:29 +1100
commit09a676a4712b86ad0406487f38a8a1a4e6a9e115 (patch)
tree4e1c35ed27b7c9308a35a380ade44d3f7029fc80 /source4
parent1f0467562b50e29eabae070c3d0088d4fc62d3a0 (diff)
downloadsamba-09a676a4712b86ad0406487f38a8a1a4e6a9e115.tar.gz
samba-09a676a4712b86ad0406487f38a8a1a4e6a9e115.tar.bz2
samba-09a676a4712b86ad0406487f38a8a1a4e6a9e115.zip
s4-selftest: use CONFIG_H environment variable to find config.h
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/tests.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/selftest/tests.sh b/source4/selftest/tests.sh
index 253f4f5592..f832b4f15e 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -118,7 +118,10 @@ for options in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD -
plantest "ldb.ldap with options $options" dc $bbdir/test_ldb.sh ldap \$SERVER $options
done
# see if we support ldaps
-if grep ENABLE_GNUTLS.1 include/config.h > /dev/null; then
+[ -n "$CONFIG_H" ] || {
+ CONFIG_H="include/config.h"
+}
+if grep ENABLE_GNUTLS.1 $CONFIG_H > /dev/null; then
for options in "" "-U\$USERNAME%\$PASSWORD"; do
plantest "ldb.ldaps with options $options" dc $bbdir/test_ldb.sh ldaps \$SERVER_IP $options
done