[python-ldap] how to run tests
pspacek at redhat.com
Mon Apr 25 04:23:18 EDT 2016
On 20.4.2016 17:23, Raphaël Barrois wrote:
> On Wed, 20 Apr 2016 12:38:33 +0200
> Petr Spacek <pspacek at redhat.com> wrote:
>> is there some documentation about running tests in Tests/ subdirectory?
>> I tried "python setup.py test" but it prints following text and does nothing:
>>> defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
>>> extra_compile_args: -g
>>> include_dirs: /usr/include/sasl /usr/include
>>> library_dirs: /usr/lib /usr/lib64
>>> libs: ldap_r
>>> running test
>> How do I know it does nothing?
>> I've changed an assert in Tests/t_search.py:test_search_subtree() and it did
>> not fail despite my sabotage.
>> Apparently somebody else tried this too and failed:
>> So, what is the correct way of executing tests?
>> Thank you!
> I think you can change directory to ``Tests`` and execute ``./runtests.sh``.
I see, the file runtests.sh is in CVS but not in the distribution tarball.
Could it be included in the tarball, please?
Fedora tends to run tests during package build to make sure that everything is
working together but this depends on having all the pieces in tarball.
Petr Spacek @ Red Hat
More information about the python-ldap