Boost logo

Boost Users :

Subject: [Boost-users] [Test] Test cases in static libraries
From: Jérémy Coulon (jeremy.coulon_at_[hidden])
Date: 2011-10-04 14:09:22

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 -> -> libBar.a

Let's say I have a dynamic library Foo which depends on a static library
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.

Question: how do I test code inside Bar static library ?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at