tags:

views:

291

answers:

2

Can anyone help me ? I'm trying to add the testing facilities from boost library and I'm stuck. Let's suppose that i have a source file like this (the simplest one):

#define BOOST_TEST_MAIN
#include 
 BOOST_AUTO_TEST_CASE(test) {
     BOOST_CHECK(1 + 1 == 2); 
}

How is suppose to look the corespondent Jamfile ? Thank you !

+2  A: 

I'm not sure I understand the question.

You don't need a Jamfile to build a program merely using Boost... a standard GCC invocation, or Makefile rule, would suffice...?!?

DevSolar
A: 

Sorry, the heser is : boost/test/unit_test.hpp. I know that it sound stupid, but you know that boost use bjam to build projects. An bjam use Jamroot or Jamfile files to find what to do. So for a simple test file like the one up, how it's suppose to look the Jamfile ???

Use "edit" to add information to your question.
DevSolar
And the rest of my answer holds. Boost uses bjam to build itself, but bjam is not at all required to build your code *using* boost. The compiler needs to find the Boost includes, the linker needs to find libboost_unit_test_framework.so, bjam isn't in the equation unless you *want* to use it.
DevSolar