summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:34:39 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commitc11f1912c955a56d646526f409d0b42542cafa99 (patch)
treeff698f4dc175dfa9541a6673533be1d564f10286 /testprogs
parent7baa3e13f262286a0cde4253975955c71b9496d0 (diff)
downloadsamba-c11f1912c955a56d646526f409d0b42542cafa99.tar.gz
testprogs: Use system_or_builddir_binary() for test_ldb
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_ldb.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh
index 0f1f60071f6..eaa4d660a54 100755
--- a/testprogs/blackbox/test_ldb.sh
+++ b/testprogs/blackbox/test_ldb.sh
@@ -14,6 +14,7 @@ shift 2
options="$*"
. $(dirname $0)/subunit.sh
+. "$(dirname "${0}")/common_test_fns.inc"
check()
{
@@ -32,9 +33,7 @@ check()
return $status
}
-export PATH="$BINDIR:$PATH"
-
-ldbsearch="$VALGRIND ldbsearch"
+ldbsearch="${VALGRIND} $(system_or_builddir_binary ldbsearch "${BINDIR}")"
check "RootDSE" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base DUMMY=x dnsHostName highestCommittedUSN || failed=$(expr $failed + 1)
check "RootDSE (full)" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base '(objectClass=*)' || failed=$(expr $failed + 1)