Re: unit test
Posted by
Kim Kuen Tang on
URL: http://quantlib.414.s1.nabble.com/unit-test-tp13490p13491.html
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
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev