[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: run test suite separately from the source code compilation?



Meike Stone wrote:
Hello,

thanks for answer, that a great pity!

Meike

2013/6/6 Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no>:
Meike Stone writes:
is it possible and how, to run the complete test suite included in the
source tarball later, after installing the openldap rpm/deb package
independently and separated from the compilation?

No.  tests/progs/ in the test suite uses libraries and generated include
files which are not installed, they're only used for building OpenLDAP.

Well. The tools in tests/progs are only used in a handful of the tests (008, 039, 060, maybe a couple other back-ldap/back-meta tests) and you could of course compile them in the source tree and use them against the packaged binaries. Or just skip the tests that use them.

But the bigger problem is the configuration that's needed to make the test scripts work with an installed package. I.e., tests/run.in needs to be converted to tests/run and tweaking that manually would be quite a chore. Also tests/scripts/defines.sh assumes a lot of the binaries are present in the source tree; you'd either have to override the paths in the script or create symlinks in the source tree to point to the corresponding binaries.

It could all be done, certainly, if you have the patience.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/