[python-ldap] how to run tests
Raphaël Barrois
raphael.barrois at m4x.org
Wed Apr 20 11:23:53 EDT 2016
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``.
Regards,
--
Raphaël Barrois
More information about the python-ldap
mailing list