
Jérémy Coulon
Hi all,
I'm currently converting cppunit tests to Boost.Test. Boost test auto-registration is awesome !
I'm now facing a problem and need help from Boost community.
mytest -> libFoo.so -> libBar.a
Let's say I have a dynamic library Foo which depends on a static library Bar. I created an executable mytest which uses Foo library. It doesn't know about Bar library.
So far, I successfully created test cases in mytest for Foo library using the public library interface (exported symbols). I just figured out how to create test cases inside Foo library (for internal non-exported classes) using console_test_runner utility.
I am confused. So, you have Foo tests both inside the library and outside?
Question: how do I test code inside Bar static library ?
I would imagine they are being run when you use console_test_runner. Since the library statically linked into Foo, all test units should be registered once static initializers are executed. Gennadiy