[bind10-dev] Which version of gtest should I use when performingunit tests?
Mary
babyvole at 163.com
Mon Dec 20 03:09:47 UTC 2010
Hi, Jeremy C. Reed
Thanks a lot for your help and sorry for replying late. I've gathered some related information:
Environment:
===========
Platform:
Linux devel 2.6.34.7-63.fc13.i686.PAE #1 SMP Fri Dec 3 12:28:58 UTC 2010 i686 i686 i386 GNU/Linux
OS:
Fedora release 13 (Goddard)
Compiler:
gcc version 4.4.5 20101112 (Red Hat 4.4.5-2) (GCC)
All lines in the output of 'make check' in directory src/lib/dns:
===========
the real directory path name are replaced with 'mydir'
make check-recursive
make[1]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns'
Making check in .
make[2]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns'
Making check in tests
make[2]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
Making check in testdata
make[3]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns/tests/testdata'
make check-am
make[4]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns/tests/testdata'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns/tests/testdata'
make[3]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns/tests/testdata'
Making check in .
make[3]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
make check-TESTS
make[4]: Entering directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
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 to bind10-dev at isc.org
===================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `mydir/bind10-devel-20101201/src/lib/dns'
make: *** [check] Error 2
'gtest-config' information:
===========
$ gtest-config --cppflags
-I/usr/local/include
$ gtest-config --ldflags
-L/usr/local/lib
$ gtest-config --libs
-lgtest -pthread
BTW: I'd strongly recommend that a 'make clean' command should be executed automatically when necessary( e.g. the parameters for configure have changed ). I've heard that bind 9.7 does something like this in 'configure'
Wish you a merry Christmas and happy new year.^_^
Mary
At 2010-12-17 02:07:48,"Jeremy C. Reed" <jreed at isc.org> wrote:
>On Thu, 16 Dec 2010, report wrote:
>
>> Subject: [bind10-dev] Which version of gtest should I use when performing unit
>> tests?
>
>I am using gtest versions 1.3.0, 1.4.0, and 1.5.0.
>
>> 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
>
>From this I am not sure if is gtest linking or libdns++ linking.
>
>What is your platform? What operating system? What compiler?
>
>What are surrounding lines for the FAILED error in "make check"? (You
>can "cd src/lib/dns" first.)
>
>What is the output for the following?
>
>gtest-config --cppflags
>
>gtest-config --ldflags
>
>gtest-config --libs
>
>(We may have more questions too.)
>
>Thanks for letting us know your coverage report is working. And thank
>you for trying BIND 10.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101220/fdb12fd1/attachment.html>
More information about the bind10-dev
mailing list