|
From: Jerry J. <jer...@gm...> - 2019-12-30 03:11:53
|
i figured it out myself, for those who wants to debug specific test case:
this will print all test content, it looks like below on my console
>quantlib-test-suite.exe --list_content
...
Swaption tests*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testCashSettledSwaptions)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testStrikeDependency)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testSpreadDependency)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testSpreadTreatment)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testCachedValue)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testImpliedVolatility)*
QuantLib__detail__quantlib_test_case(&SwaptionTest__testVega)*
...
this works for me, exact name doesn't work, don't know why, but at
lease it will narrow down the list quite a bit
>quantlib-test-suite.exe --run_test=*/*/*SwaptionTest__testCachedValue*
Running 2 test cases...
*** No errors detected
On Fri, Dec 27, 2019 at 4:29 PM Jerry Jin <jer...@gm...> wrote:
>
> Hello,
> Can someone please guide me how to run specific case in test-suite, I
> tried searching in google, but the instructions for boost unit test
> seems not working for me, please help.
>
> Say, I want to run SwaptionTest::testCachedValue, what command should I use?
>
> Thanks a lot!
>
> Regards
> Jerry
|