Boost logo

Boost Users :

Subject: [Boost-users] Multi file test module in Boost.Test
From: Guillaume Dumont (dumont.guillaume_at_[hidden])
Date: 2010-11-02 22:50:46


Hi,

I have been trying to get a multi file test module to execute without
success. I have the following setup:

// main.cpp
#define BOOST_TEST_MODULE example
#include <boost/test/unit_test.hpp>

// suite1.cpp
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_SUITE(suite1);

BOOST_AUTO_TEST_CASE(test1)
{
...
}

BOOST_TEST_SUITE_END();

// suite2.cpp
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_SUITE(suite2);

BOOST_AUTO_TEST_CASE(test2)
{
...
}

BOOST_TEST_SUITE_END();

But only one of the two test cases runs. If I put the suites into the same
.cpp file all the test cases are run. Is it possible to link against the
static library variant of boost test and have a multi file test module? From
what I understand it should be, but I can just find how.

Thank you.

-- 
Guillaume Dumont
=========================
dumont.guillaume_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net