[python-ldap] how to run tests

Petr Spacek 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:
> 
>> Hello,
>>
>> 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
>>> extra_objects:
>>> 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:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1157426
>>
>>
>> So, what is the correct way of executing tests?
>>
>> Thank you!
>>
> 
> Hi,
> 
> 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.

Thank you!

-- 
Petr Spacek  @  Red Hat


More information about the python-ldap mailing list