summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-05 04:33:29 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-05 04:33:29 +0200
commite4d1bdbe5505d63f7cd5b8cc7f07a11f9361f93b (patch)
treeb8e3a936e676888d31f432e1dbe37021665e3e6c
parent851ad13047b7abe6cd0666c74984ddff37e5e096 (diff)
downloadsamba-e4d1bdbe5505d63f7cd5b8cc7f07a11f9361f93b.tar.gz
samba-e4d1bdbe5505d63f7cd5b8cc7f07a11f9361f93b.tar.bz2
samba-e4d1bdbe5505d63f7cd5b8cc7f07a11f9361f93b.zip
s4/selftest: Fix path to include/config.h, set BUILDDIR automatically.
-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 0341d3ef70..6ed631b7bd 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -95,6 +95,9 @@ plansmbtorturetestsuite() {
}
samba4srcdir="`dirname $0`/.."
+if [ -z "$BUILDDIR" ]; then
+ BUILDDIR="$samba4srcdir"
+fi
samba4bindir="$BUILDDIR/bin"
smb4torture="$samba4bindir/smbtorture${EXEEXT}"
if which tap2subunit 2>/dev/null; then
@@ -134,7 +137,7 @@ for options in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD -
done
# see if we support ldaps
[ -n "$CONFIG_H" ] || {
- CONFIG_H="include/config.h"
+ CONFIG_H="$samba4bindir/default/source4/include/config.h"
}
if grep ENABLE_GNUTLS.1 $CONFIG_H > /dev/null; then
for options in "" "-U\$USERNAME%\$PASSWORD"; do