From e4d1bdbe5505d63f7cd5b8cc7f07a11f9361f93b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 5 Sep 2010 04:33:29 +0200 Subject: s4/selftest: Fix path to include/config.h, set BUILDDIR automatically. --- source4/selftest/tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') 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 -- cgit