Description of problem:
upstream test suite doesn't work
1. download and install src.rpm
2. rpmbuild -bc $HOME/rpmbuild/SPECS/python-ldap.spec; cd $HOME/rpmbuild/BUILD/python-ldap*
3. python setup.py build
4. python setup.py test
[test]python setup.py test
defines: HAVE_SASL HAVE_TLS
script only write 'running test' on the screen but nothing happens. I guess this should work.
I tried to run directly runtest.sh in Tests ($HOME/rpmbuild/BUILD/python-ldap*/Tests) directory but it 'simply' doesn't work as well.
I tried following changes which helped me with some errors but there are still some problems.
1. manually create /var/tmp/python-ldap-test/ldif-data directory
2. change PATH_SCHEMA_CORE variable from "/etc/ldap/schema/core.schema" to "/etc/openldap/schema/core.schema" in slapd.py
bash runtest.sh now fails with following error:
ERROR: test_abandon (__main__.TestLdapCExtension)
Traceback (most recent call last):
File "t_cext.py", line 208, in test_abandon
l = self._init()
File "t_cext.py", line 42, in _init
result,pmsg,msgid,ctrls = l.result3(m, _ldap.MSG_ONE, self.timeout)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Note: upstream CVS contains file Tests/runtests.sh which is not included in the tarball. I've asked upstream to include the file:
The latest upstream releases contain more fixes for test suite. I would prefer to fix this bug as part of a rebase to a more recent version of python-ldap.
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.