[bind10-dev] failing python unit tests

Jeremy C. Reed jreed at isc.org
Tue Apr 20 16:15:05 UTC 2010


On Tue, 20 Apr 2010, Jeremy C. Reed wrote:

> A another problem found in src/bin/cmdctl/tests
> 
> make  check-local
> for pytest in cmdctl_test.py ; do  echo Running test: $pytest ;  env 
> PYTHONPATH=/home/reed/work/isc/bind10/svn/trunk/src/lib/python:/home/reed/work/isc/bind10/svn/trunk/src/bin/cmdctl  
> /usr/pkg/bin/python3.1 $pytest ;  done
> Running test: cmdctl_test.py

Maybe "bitrot". I will exclude from descending into this tests for the 
release. But then enable for trunk after the release branch.

Next problem: trunk/src/bin/xfrin/tests

make  check-local
for pytest in xfrin_test.py ; do  echo Running test: $pytest ;  env 
PYTHONPATH=/home/reed/work/isc/bind10/svn/trunk/src/lib/dns/.libs:/home/reed/work/isc/bind10/svn/trunk/src/bin/xfrin:/home/reed/work/isc/bind10/svn/trunk/src/lib/python  
/usr/pkg/bin/python3.1 $pytest ;  done
Running test: xfrin_test.py
[b10-xfrin] failed to import DNS module: Shared object 
"libboost_python.so.1.42.0" not found
..E.E
======================================================================
ERROR: test_response (__main__.TestXfrinConnection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "xfrin_test.py", line 73, in test_response
    self.conn._send_query(rr_type.AXFR())
NameError: global name 'rr_type' is not defined

======================================================================
ERROR: test_response_without_end_soa (__main__.TestXfrinConnection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "xfrin_test.py", line 68, in test_response_without_end_soa
    self.conn._send_query(rr_type.AXFR())
NameError: global name 'rr_type' is not defined

----------------------------------------------------------------------
Ran 5 tests in 0.002s

FAILED (errors=2)
*** Error code 1


This test should only be done if boost is used so I use "if 
HAVE_BOOST_PYTHON".

The problem above of missing share library can be worked around with 
setting LD_LIBRARY_PATH but that may not be portable.

I will also exclude testing for this for now.





More information about the bind10-dev mailing list