Menu

#60 test script runtests needs refining

None
closed-wont-fix
None
5
2016-12-11
2012-05-07
Ian Delaney
No

Attempted running Tests/runtests.sh with no success. It draws erros of every description.
Run from an ebuild;

pushd Tests > /dev/null
./runtests.sh
popd > /dev/null

nothing passes. the temp directory alone
/var/tmp/python-ldap-test
set in Tests/slapd.py ensures it will never work from in ebuild in
/mnt/gen2/TmpDir/portage/dev-python/python-ldap-2.4.9/work/python-ldap-2.4.9/

The script appears to require config settings to be set for;
temp directory,
configuration file (default (/etc/openladp/slapd.conf
a handler for a logger.

cd to
/mnt/gen2/TmpDir/portage/dev-python/python-ldap-2.4.9/work/python-ldap-2.4.9/Tests/
Tests # ./runtests.sh

performs much the same.

----------------------------------------------------------------------------------------------------
t_cext.py:
No handlers could be found for logger "Slapd"
slaptest: bad configuration file!
Eslaptest: bad configuration file!
Eslaptest: bad configuration file!
--------------------------------------------------------------------------------------
ERROR: test_abandon (__main__.TestLdapCExtension)
----------------------------------------------------------------------
File "/mnt/gen2/TmpDir/portage/dev-python/python-ldap-2.4.9/work/python-ldap-2.4.9/Tests/slapd.py", line 260, in _test_configuration
raise RuntimeError("configuration test failed")
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
----------------------------------------------------------------------
Ran 3 tests in 0.008s

FAILED (errors=3)
Tests that failed: t_cext.py t_ldapurl.py t_search.py

Perfect score.

Discussion

  • Ian Delaney

    Ian Delaney - 2012-05-07

    python-ldap-2.4.9_build.log with test failures.

     
  • Ian Delaney

    Ian Delaney - 2012-05-07
    • assigned_to: nobody --> stroeder
     
  • Michael Ströder

    • status: open --> closed-wont-fix
    • Group: -->
     
  • Michael Ströder

    tracked now solely in more recent #68

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.