ldb: Use libraries from build dir for testsuite
authorLukas Slebodnik <lslebodn@redhat.com>
Mon, 3 Jul 2017 22:32:31 +0000 (00:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Jul 2017 19:39:22 +0000 (21:39 +0200)
commitd5d6d209dedd60f8e99d11789f2a0d4e2bf95896
tree1afaf0755146c06a29b536508f3da544fbe2b168
parent9e1cbce2731f0d862966854113640970f710e572
ldb: Use libraries from build dir for testsuite

There was a failure when tests were executed after after extracting
ldb tarball.

  sh$ make -j8 check
  WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$PATH waf test
  ldbadd: error while loading shared libraries: libldb.so.1: cannot open shared object file: No such file or directory
  cat: write error: Broken pipe
  Traceback (most recent call last):
    File "tests/python/api.py", line 10, in <module>
      import ldb
  ImportError: libldb.so.1: cannot open shared object file: No such file or directory
  Traceback (most recent call last):
    File "tests/python/api.py", line 10, in <module>
      import ldb
  ImportError: libpyldb-util.so.1: cannot open shared object file: No such file or directory
  bin/ldb_tdb_mod_op_test: error while loading shared libraries: libldb.so.1: cannot open shared object file: No such file or directory
  testsuite returned 1

Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Alexander Bokovoy <ab@samba.org>
lib/ldb/wscript