
AMDG Steven Ross wrote:
How do I run Boost's automated testing on a single unit test,
If you have run mytest.cpp ; (e.g.) in the Jamfile you can run this test with bjam mytest
and how do I create a new test directory in BOOST_ROOT/libs/algorithm/sorting such that it gets executed?
You don't need to deal with this yet. The full regression tests are controlled by status/Jamfile.v2 which just contains a list of libraries.
If someone could just explain how I run libs/algorithm/string's automated tests, I'd be quite happy to copy how its tests are written, and modify them to test sorting correctness. I've spent over 7 hours so far trying to figure this out, and it's starting to get ridiculous. I've read through the documentation of bjam and the Boost test library and they don't seem to explain this
# run all tests bjam # run the first test bjam trim The fifth argument to the run rule is the name of the target. The name defaults to be the name of the first source file. Also, the test-suite is unnecessary. The StringAlgo Jamfile could just as easily be written as run trim_test.cpp : : : : trim ; run conv_test.cpp : : : : conv ; #... In Christ, Steven Watanabe