[bind10-dev] Which version of gtest should I use when performing unit tests?
report
babyvole at 163.com
Thu Dec 16 09:31:29 UTC 2010
Hi,
I found that sometimes the unit tests for bind10 source code couldn't pass. I found this in output:
===================================
1 of 1 test failed
Please report tobind10-dev at isc.org
===================================
I'm not sure if I should report it here because I think the reason may be that I've used wrong version of gtest.
version of bind is :bind10-devel-20101201 ( the same results for bind10-devel-20100917 and source code in trunk directory on svn server )
version of gtest is: gtest 1.5.0 ( the same results for gtest 1.3.0 )
Detail information as follows:
When I ran 'make coverage':
...
mydir/bind10-devel-20101201/src/lib/dns/tests/.libs/lt-run_unittests: symbol lookup error: mydir/bind10-devel-20101201/src/lib/dns/tests/.libs/lt-run_unittests: undefined symbol: _ZN3isc3dns5rdata3any4TSIGD1Ev
FAIL: run_unittests
===================================
1 of 1 test failed
Please report tobind10-dev at isc.org
===================================
make[7]: *** [check-TESTS] Error 1
...
I've replaced the real directory path name with 'mydir'
Something I found:
1
Nothing unusual happened during 'configure' and 'make'
2
Rule 'coverage' in Makefile:coverage: clean-coverage perform-coverage report-coverage
The error info. is part of the output of 'make perform-coverage'
Seperately running 'make clean-coverage' and 'make report-coverage' generates no error info.
3
I found 7 different directory in the output of 'grep "#include <gtest/gtest.h>" * -R':
src/lib/exceptions/tests/
src/lib/cc/tests/
src/lib/dns/tests
src/lib/config/tests/
src/lib/bench/tests/
src/lib/datasrc/tests/
src/bin/auth/tests
I ran './run_unittests' in each directory and found no error info. except in directory 'src/lib/dns/tests'. The content is the same as above.
4
I ran 'make report-coverage' and got a webpage similar with the one on isc.org website:
http://bind10.isc.org/~tester/LATEST_UNITTEST_COVERAGE/
I think it's an evidence that LCOV works well.
How to solve it? Any suggestion? Thanks a lot.
Mary
2010-12-16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101216/bda1ce1b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LCOV-code coverage report.bmp
Type: image/bmp
Size: 1291266 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101216/bda1ce1b/attachment.bin>
More information about the bind10-dev
mailing list