Hi folks,
Compiling the Debian sources for the OpenLDAP packages can take over an hour on my relatively fast workstation. Much of that time seems to be spent running a slapd server with all kinds of test routines. Is that what's actually going on? Whatever, perhaps someone could explain.
Thanks,
Jaap
Hi folks,
Compiling the Debian sources for the OpenLDAP packages can take over an hour on my relatively fast workstation. Much of that time seems to be spent running a slapd server with all kinds of test routines. Is that what's actually going on? Whatever, perhaps someone could explain.
Perhaps someone at Debian could. You need to explicitly request "make test" to run the test suite using OpenLDAP's make. That's all that ships with OpenLDAP. The rest isn't ours.
p.
Quoting masarati@aero.polimi.it:
Perhaps someone at Debian could. You need to explicitly request "make test" to run the test suite using OpenLDAP's make. That's all that ships with OpenLDAP. The rest isn't ours.
I think I found the cause. It's the last three lines in Makefile.in (Apr 13 2010):
check: test test: FORCE cd tests; make test
I suspect that if I remove them, the tests may be disabled.
This file also contains an OpenLDAP Foundation copyright notice, so I guess the Debian maintainers added those lines. On the other hand, these lines also appear in the copy of Makefile.in (same date) included in the openldap_2.4.23.orig.tar.gz file.
Cheers,
Jaap
--On Wednesday, January 05, 2011 6:22 PM +0100 Jaap Winius jwinius@umrk.nl wrote:
Quoting masarati@aero.polimi.it:
Perhaps someone at Debian could. You need to explicitly request "make test" to run the test suite using OpenLDAP's make. That's all that ships with OpenLDAP. The rest isn't ours.
I think I found the cause. It's the last three lines in Makefile.in (Apr 13 2010):
check: test test: FORCE cd tests; make test
I suspect that if I remove them, the tests may be disabled.
This means running "make check" is the same thing as running "make test". If you don't want to run the test, don't run make check or make test. The default OpenLDAP builds do not run either of those.
The Debian maintainers have a proven track record of making all sorts of interesting and broken changes to OpenLDAP and other packages (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598361, http://www.debian.org/security/2008/dsa-1571). They also build against GnuTLS, which has previously been noted as considered a security risk by the OpenLDAP team. If you choose to use the builds provided by Debian, understand that you are not using stock OpenLDAP builds, and you may have all sorts of interesting issues because of it.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Quoting masarati@aero.polimi.it:
Perhaps someone at Debian could. You need to explicitly request "make test" to run the test suite using OpenLDAP's make. That's all that ships with OpenLDAP. The rest isn't ours.
I think I found the cause. It's the last three lines in Makefile.in (Apr 13 2010):
check: test test: FORCE cd tests; make test
I suspect that if I remove them, the tests may be disabled.
This file also contains an OpenLDAP Foundation copyright notice, so I guess the Debian maintainers added those lines. On the other hand, these lines also appear in the copy of Makefile.in (same date) included in the openldap_2.4.23.orig.tar.gz file.
FORCE is a fake dependence to make sure that rule depends on a file that's never created (info make for details). This has nothing to do with automatically executing that command.
If you run OpenLDAP from scratch, using sources distributed by OpenLDAP, by no means tests are executed if you execute "make" or "make install".
Probably, Debian build scripts force the execution of "make test" at the end of the build. I don't see anything wrong in this, it's their choice and in general I find it useful to check that things just built work as expected.
In any case, this has nothing to do with OpenLDAP. You're complaining to the wrong people in the wrong place.
p.
On Wed, 5 Jan 2011, Jaap Winius wrote:
Hi folks,
Compiling the Debian sources for the OpenLDAP packages can take over an hour on my relatively fast workstation. Much of that time seems to be spent running a slapd server with all kinds of test routines. Is that what's actually going on? Whatever, perhaps someone could explain.
Thanks,
Jaap
You'd have to check with the Debian guys if they include a "make test" in their routine. If they do, it would be the most likely cause of the behavior described. Presumably you're building multiple backends, and those multiple backends are being tested. i.e., there's not only 50-someodd tests to be run, but they are run once for each suitable and/or requested backend. This necessarily takes some time.
IMO this is a worthwhile package design decision considering the ratio of package build frequency :: package execution frequency. But if you find yourself building a lot, you can skip the step and use the binaries blind. (Of course, for really heavy development, I find myself just typing "make" interactively. Which does NOT imply test, so I have a binary ready-to-try in short order.)
On 05/01/11 14:33 +0100, Jaap Winius wrote:
Hi folks,
Compiling the Debian sources for the OpenLDAP packages can take over an hour on my relatively fast workstation. Much of that time seems to be spent running a slapd server with all kinds of test routines. Is that what's actually going on? Whatever, perhaps someone could explain.
Try:
sed -i 's/builddir) test/builddir)/' debian/rules
openldap-technical@openldap.org