|
From: Kim K. T. <kue...@vo...> - 2010-07-30 20:51:04
|
Hi Patrick, henaffp schrieb: > Hello, > > I can build and run the entire test suite > /usr/local/bin/quantlib-test-suite > > I'm now trying to run a single unit test with > /usr/local/bin/quantlib-test-suite --run_test=xxx > test cases in quantlib are registered using free functions instead of arguments. So i am afraid that this is not possible. Take a look at test-suite\utilities.hpp on line 63. It uses BOOST_TEST_CASE instead of BOOST_AUTO_TEST_CASE. A workaround would be u just comment the tests out in file quantlibtestsuite.hpp that you dont want to run. HTH -Kim > What should xxx look like? If I take the example of the Quotetest suite > (quotes.cpp), I see that > the suite is named "Quote tests" > > but > /usr/local/bin/quantlib-test-suite --run_test="Quotes tests" > does not work, nor many variations on that theme. > > Could anyone indicate how to do this? > > Thanks in advance > > Patrick Hénaff > |