Skip to content

Commit

Permalink
Remove separate "experimental" test suites.
Browse files Browse the repository at this point in the history
With manual registration, we could execute all main tests
first and all experimental ones later.  With automatic
registration, that's no longer true so there's no point.
  • Loading branch information
lballabio committed Dec 14, 2023
1 parent 55f945c commit 3a8f29a
Show file tree
Hide file tree
Showing 39 changed files with 66 additions and 94 deletions.
6 changes: 1 addition & 5 deletions test-suite/asianoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1908,10 +1908,6 @@ BOOST_AUTO_TEST_CASE(testTurnbullWakemanAsianEngine) {
}
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(AsianOptionExperimentalTest)

BOOST_AUTO_TEST_CASE(testLevyEngine) {

BOOST_TEST_MESSAGE("Testing Levy engine for Asians options...");
Expand Down Expand Up @@ -2401,4 +2397,4 @@ BOOST_AUTO_TEST_CASE(testDiscreteGeometricAveragePriceHestonPastFixings) {
}
BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
6 changes: 1 addition & 5 deletions test-suite/barrieroption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,6 @@ BOOST_AUTO_TEST_CASE(testLowVolatility) {
check( 95.0, Option::Call, 99.0, Barrier::DownIn, 4.0, 0.01, 0.04, 2.0); // fwd = 97, call, ITM
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(BarrierOptionExperimentalTest)

BOOST_AUTO_TEST_CASE(testPerturbative) {
BOOST_TEST_MESSAGE("Testing perturbative engine for barrier options...");

Expand Down Expand Up @@ -1688,4 +1684,4 @@ BOOST_AUTO_TEST_CASE(testVannaVolgaSimpleBarrierValues) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/basismodels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(BasismodelsExperimentalTest)
BOOST_AUTO_TEST_SUITE(BasisModelsTest)

BOOST_AUTO_TEST_CASE(testSwaptioncfsContCompSpread) {
BOOST_TEST_MESSAGE(
Expand Down Expand Up @@ -402,4 +402,4 @@ BOOST_AUTO_TEST_CASE(testTenorswaptionvts) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/basisswapratehelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ namespace basisswapratehelpers_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(BasisSwapRateHelpersExperimentalTest)
BOOST_AUTO_TEST_SUITE(BasisSwapRateHelpersTest)

BOOST_AUTO_TEST_CASE(testIborIborBaseCurveBootstrap) {
BOOST_TEST_MESSAGE("Testing IBOR-IBOR basis-swap rate helpers (base curve bootstrap)...");
Expand Down Expand Up @@ -240,4 +240,4 @@ BOOST_AUTO_TEST_CASE(testOvernightIborBootstrapWithDiscountCurve) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
2 changes: 1 addition & 1 deletion test-suite/blackdeltacalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace black_delta_calculator_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(BlackDeltaCalculatorExperimentalTest)
BOOST_AUTO_TEST_SUITE(BlackDeltaCalculatorTest)

BOOST_AUTO_TEST_CASE(testDeltaValues){

Expand Down
4 changes: 2 additions & 2 deletions test-suite/callablebonds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CallableBondExperimentalTest)
BOOST_AUTO_TEST_SUITE(CallableBondTest)

BOOST_AUTO_TEST_CASE(testInterplay) {

Expand Down Expand Up @@ -826,4 +826,4 @@ BOOST_AUTO_TEST_CASE(testCallableFixedRateBondWithArbitrarySchedule) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/catbonds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace catbonds_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CatBondExperimentaltest)
BOOST_AUTO_TEST_SUITE(CatBondTest)

BOOST_AUTO_TEST_CASE(testEventSetForWholeYears) {
BOOST_TEST_MESSAGE("Testing that catastrophe events are split correctly for periods of whole years...");
Expand Down Expand Up @@ -679,4 +679,4 @@ BOOST_AUTO_TEST_CASE(testCatBondWithGeneratedEventsProportional) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
2 changes: 1 addition & 1 deletion test-suite/cdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace cdo_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CdoExperimentalTest, *precondition(if_speed(Slow)))
BOOST_AUTO_TEST_SUITE(CdoTest, *precondition(if_speed(Slow)))

#ifndef QL_PATCH_SOLARIS

Expand Down
4 changes: 2 additions & 2 deletions test-suite/cdsoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CdsOptionExperimentalTest)
BOOST_AUTO_TEST_SUITE(CdsOptionTest)

BOOST_AUTO_TEST_CASE(testCached) {

Expand Down Expand Up @@ -118,4 +118,4 @@ BOOST_AUTO_TEST_CASE(testCached) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/cmsspread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct TestData {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CmsSpreadExperimentalTest)
BOOST_AUTO_TEST_SUITE(CmsSpreadTest)

BOOST_AUTO_TEST_CASE(testFixings) {
BOOST_TEST_MESSAGE("Testing fixings of cms spread indices...");
Expand Down Expand Up @@ -349,4 +349,4 @@ BOOST_AUTO_TEST_CASE(testCouponPricing) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
2 changes: 1 addition & 1 deletion test-suite/commodityunitofmeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CommodityUnitOfMeasureExperimentalTest)
BOOST_AUTO_TEST_SUITE(CommodityUnitOfMeasureTest)

BOOST_AUTO_TEST_CASE(testDirect) {

Expand Down
4 changes: 2 additions & 2 deletions test-suite/compiledboostversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CompiledBoostVersionExperimentalTest)
BOOST_AUTO_TEST_SUITE(CompiledBoostVersionTest)

BOOST_AUTO_TEST_CASE(test) {

Expand All @@ -41,4 +41,4 @@ BOOST_AUTO_TEST_CASE(test) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/creditriskplus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(CreditRiskPlusExperimentalTest)
BOOST_AUTO_TEST_SUITE(CreditRiskPlusTest)

BOOST_AUTO_TEST_CASE(testReferenceValues) {

Expand Down Expand Up @@ -125,4 +125,4 @@ BOOST_AUTO_TEST_CASE(testReferenceValues) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
6 changes: 1 addition & 5 deletions test-suite/doublebarrieroption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,6 @@ BOOST_AUTO_TEST_CASE(testEuropeanHaugValues) {
}
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(DoubleBarrierOptionExperimentalTest)

BOOST_AUTO_TEST_CASE(testVannaVolgaDoubleBarrierValues) {
BOOST_TEST_MESSAGE(
"Testing double-barrier FX options against Vanna/Volga values...");
Expand Down Expand Up @@ -642,4 +638,4 @@ BOOST_AUTO_TEST_CASE(testMonteCarloDoubleBarrierWithAnalytical, *precondition(if

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
6 changes: 1 addition & 5 deletions test-suite/europeanoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1781,10 +1781,6 @@ BOOST_AUTO_TEST_CASE(testVanillaAndDividendEngine) {
}
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(EuropeanOptionExperimentalTest)

BOOST_AUTO_TEST_CASE(testFFTEngines) {

BOOST_TEST_MESSAGE("Testing FFT European engines "
Expand All @@ -1802,4 +1798,4 @@ BOOST_AUTO_TEST_CASE(testFFTEngines) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/everestoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(EverestOptionExperimentalTest)
BOOST_AUTO_TEST_SUITE(EverestOptionTest)

BOOST_AUTO_TEST_CASE(testCached) {

Expand Down Expand Up @@ -135,4 +135,4 @@ BOOST_AUTO_TEST_CASE(testCached) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/extendedtrees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ namespace {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(ExtendedTreesExperimentalTest)
BOOST_AUTO_TEST_SUITE(ExtendedTreesTest)

BOOST_AUTO_TEST_CASE(testJRBinomialEngines) {

Expand Down Expand Up @@ -355,4 +355,4 @@ BOOST_AUTO_TEST_CASE(testJOSHIBinomialEngines) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/extensibleoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(ExtensibleOptionsExperimentalTest)
BOOST_AUTO_TEST_SUITE(ExtensibleOptionsTest)

BOOST_AUTO_TEST_CASE(testAnalyticHolderExtensibleOptionEngine) {
BOOST_TEST_MESSAGE(
Expand Down Expand Up @@ -153,4 +153,4 @@ BOOST_AUTO_TEST_CASE(testAnalyticWriterExtensibleOptionEngine) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
6 changes: 1 addition & 5 deletions test-suite/gaussianquadratures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,6 @@ BOOST_AUTO_TEST_CASE(testGaussLaguerreCosinePolynomial) {
x_inv_exp, 1.0);
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(GaussianQuadraturesExperimentalTest)

BOOST_AUTO_TEST_CASE(testNonCentralChiSquared) {
BOOST_TEST_MESSAGE(
"Testing Gauss non-central chi-squared integration...");
Expand Down Expand Up @@ -351,4 +347,4 @@ BOOST_AUTO_TEST_CASE(testNonCentralChiSquaredSumOfNodes) {
}
BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 0 additions & 4 deletions test-suite/hestonmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3212,10 +3212,6 @@ BOOST_AUTO_TEST_CASE(testLocalVolFromHestonModel) {
}
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(HestonModelExperimentalTest)

BOOST_AUTO_TEST_CASE(testAnalyticPDFHestonEngine) {
BOOST_TEST_MESSAGE("Testing analytic PDF Heston engine...");

Expand Down
4 changes: 2 additions & 2 deletions test-suite/inflationcpicapfloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ namespace inflation_cpi_capfloor_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(InflationCPICapFloorExperimentalTest)
BOOST_AUTO_TEST_SUITE(InflationCPICapFloorTest)

BOOST_AUTO_TEST_CASE(cpicapfloorpricesurface) {
BOOST_TEST_MESSAGE("Checking CPI cap/floor against price surface...");
Expand Down Expand Up @@ -445,4 +445,4 @@ BOOST_AUTO_TEST_CASE(cpicapfloorpricer) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/inflationvolatility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ namespace inflation_volatility_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(InflationVolExperimentalTest)
BOOST_AUTO_TEST_SUITE(InflationVolTest)

BOOST_AUTO_TEST_CASE(testYoYPriceSurfaceToVol) {
BOOST_TEST_MESSAGE("Testing conversion from YoY price surface "
Expand Down Expand Up @@ -405,4 +405,4 @@ BOOST_AUTO_TEST_CASE(testYoYPriceSurfaceToATM) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/noarbsabr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void checkD0(const Real sigmaI, const Real beta, const Real rho, const Real nu,

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(NoArbSabrExperimentalTest)
BOOST_AUTO_TEST_SUITE(NoArbSabrTest)

BOOST_AUTO_TEST_CASE(testAbsorptionMatrix) {

Expand Down Expand Up @@ -123,4 +123,4 @@ BOOST_AUTO_TEST_CASE(testConsistencyWithHagan) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/normalclvmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(NormalCLVModelExperimentalTest)
BOOST_AUTO_TEST_SUITE(NormalCLVModelTest)

BOOST_AUTO_TEST_CASE(testBSCumlativeDistributionFunction) {
BOOST_TEST_MESSAGE("Testing Black-Scholes cumulative distribution function"
Expand Down Expand Up @@ -539,4 +539,4 @@ BOOST_AUTO_TEST_CASE(testMoustacheGraph, *precondition(if_speed(Slow))) {
}
BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/nthtodefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace nth_to_default_test {

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(NthToDefaultExperimentalTest)
BOOST_AUTO_TEST_SUITE(NthToDefaultTest)

#ifndef QL_PATCH_SOLARIS

Expand Down Expand Up @@ -390,4 +390,4 @@ BOOST_AUTO_TEST_CASE(testStudent, *precondition(if_speed(Slow))) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
4 changes: 2 additions & 2 deletions test-suite/pagodaoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace boost::unit_test_framework;

BOOST_FIXTURE_TEST_SUITE(QuantLibTest, TopLevelFixture)

BOOST_AUTO_TEST_SUITE(PagodaOptionExperimentalTest)
BOOST_AUTO_TEST_SUITE(PagodaOptionTest)

BOOST_AUTO_TEST_CASE(testCached) {

Expand Down Expand Up @@ -131,4 +131,4 @@ BOOST_AUTO_TEST_CASE(testCached) {

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
Loading

0 comments on commit 3a8f29a

Please sign in to comment.