|
From: Peter C. <pca...@gm...> - 2019-12-30 20:59:03
|
Hi Jerry, the following works for me, is that what you tried to select a single test? ./quantlib-test-suite --run_test="QuantLib test suite/Swaption tests/QuantLib__detail__quantlib_test_case(&SwaptionTest__testCachedValue)" Running 1 test case... *** No errors detected Best Regards, Peter > On 30 Dec 2019, at 04:11, Jerry Jin <jer...@gm...> wrote: > > 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 > > > _______________________________________________ > QuantLib-users mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-users |