dev/null |binary sc/qa/unit/data/ods/opencl/compiler/ineq.ods |binary sc/qa/unit/data/ods/opencl/compiler/nested.ods |binary sc/qa/unit/data/ods/opencl/compiler/string.ods |binary sc/qa/unit/data/ods/opencl/math/csc.ods |binary sc/qa/unit/data/ods/opencl/statistical/Correl.ods |binary sc/qa/unit/data/xls/opencl/financial/Accrintm.xls |binary sc/qa/unit/data/xls/opencl/financial/Coupdaybs.xls |binary sc/qa/unit/data/xls/opencl/financial/Coupdays.xls |binary sc/qa/unit/data/xls/opencl/financial/Coupdaysnc.xls |binary sc/qa/unit/data/xls/opencl/financial/Cumipmt.xls |binary sc/qa/unit/data/xls/opencl/financial/Cumprinc.xls |binary sc/qa/unit/data/xls/opencl/financial/DISC.xls |binary sc/qa/unit/data/xls/opencl/financial/Dollarde.xls |binary sc/qa/unit/data/xls/opencl/financial/Dollarfr.xls |binary sc/qa/unit/data/xls/opencl/financial/EFFECT_ADD.xls |binary sc/qa/unit/data/xls/opencl/financial/Fvschedule.xls |binary sc/qa/unit/data/xls/opencl/financial/INTRATE.xls |binary sc/qa/unit/data/xls/opencl/financial/IRR.xls |binary sc/qa/unit/data/xls/opencl/financial/MIRR.xls |binary sc/qa/unit/data/xls/opencl/financial/Nominal.xls |binary sc/qa/unit/data/xls/opencl/financial/PriceMat.xls |binary sc/qa/unit/data/xls/opencl/financial/RATE.xls |binary sc/qa/unit/data/xls/opencl/financial/RRI.xls |binary sc/qa/unit/data/xls/opencl/financial/Received.xls |binary sc/qa/unit/data/xls/opencl/financial/SLN.xls |binary sc/qa/unit/data/xls/opencl/financial/SYD.xls |binary sc/qa/unit/data/xls/opencl/financial/TBILLEQ.xls |binary sc/qa/unit/data/xls/opencl/financial/TBILLPRICE.xls |binary sc/qa/unit/data/xls/opencl/financial/TBILLYIELD.xls |binary sc/qa/unit/data/xls/opencl/financial/XNPV.xls |binary sc/qa/unit/data/xls/opencl/financial/YIELD.xls |binary sc/qa/unit/data/xls/opencl/financial/YIELDDISC.xls |binary sc/qa/unit/data/xls/opencl/financial/YIELDMAT.xls |binary sc/qa/unit/data/xls/opencl/financial/general.xls |binary sc/qa/unit/data/xls/opencl/math/cos.xls |binary sc/qa/unit/data/xls/opencl/statistical/Fisher.xls |binary sc/qa/unit/data/xls/opencl/statistical/FisherInv.xls |binary sc/qa/unit/data/xls/opencl/statistical/Gamma.xls |binary sc/qa/unit/data/xls/opencl/statistical/GammaLn.xls |binary sc/qa/unit/data/xls/opencl/statistical/Gauss.xls |binary sc/qa/unit/data/xls/opencl/statistical/GeoMean.xls |binary sc/qa/unit/data/xls/opencl/statistical/HarMean.xls |binary sc/qa/unit/data/xls/opencl/statistical/Negbinomdist.xls |binary sc/qa/unit/data/xls/opencl/statistical/Pearson.xls |binary sc/qa/unit/data/xls/opencl/statistical/Rsq.xls |binary sc/qa/unit/opencl-test.cxx | 188 ++++++++-------- 47 files changed, 97 insertions(+), 91 deletions(-)
New commits: commit 5655b8ede2a5386b9d24d266ae08172a60b04618 Author: Kohei Yoshida <[email protected]> Date: Wed Oct 30 09:12:09 2013 -0400 Lower-case directory names, and rename to just 'opencl'. Change-Id: I412298c73586c347d88f08bad0357a8142df3f63 diff --git a/sc/qa/unit/data/ods/OpenCLTests/Compiler/ineq.ods b/sc/qa/unit/data/ods/opencl/compiler/ineq.ods similarity index 100% rename from sc/qa/unit/data/ods/OpenCLTests/Compiler/ineq.ods rename to sc/qa/unit/data/ods/opencl/compiler/ineq.ods diff --git a/sc/qa/unit/data/ods/OpenCLTests/Compiler/nested.ods b/sc/qa/unit/data/ods/opencl/compiler/nested.ods similarity index 100% rename from sc/qa/unit/data/ods/OpenCLTests/Compiler/nested.ods rename to sc/qa/unit/data/ods/opencl/compiler/nested.ods diff --git a/sc/qa/unit/data/ods/OpenCLTests/Compiler/string.ods b/sc/qa/unit/data/ods/opencl/compiler/string.ods similarity index 100% rename from sc/qa/unit/data/ods/OpenCLTests/Compiler/string.ods rename to sc/qa/unit/data/ods/opencl/compiler/string.ods diff --git a/sc/qa/unit/data/ods/OpenCLTests/math/csc.ods b/sc/qa/unit/data/ods/opencl/math/csc.ods similarity index 100% rename from sc/qa/unit/data/ods/OpenCLTests/math/csc.ods rename to sc/qa/unit/data/ods/opencl/math/csc.ods diff --git a/sc/qa/unit/data/ods/OpenCLTests/statistical/Correl.ods b/sc/qa/unit/data/ods/opencl/statistical/Correl.ods similarity index 100% rename from sc/qa/unit/data/ods/OpenCLTests/statistical/Correl.ods rename to sc/qa/unit/data/ods/opencl/statistical/Correl.ods diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Accrintm.xls b/sc/qa/unit/data/xls/opencl/financial/Accrintm.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Accrintm.xls rename to sc/qa/unit/data/xls/opencl/financial/Accrintm.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Coupdaybs.xls b/sc/qa/unit/data/xls/opencl/financial/Coupdaybs.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Coupdaybs.xls rename to sc/qa/unit/data/xls/opencl/financial/Coupdaybs.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Coupdays.xls b/sc/qa/unit/data/xls/opencl/financial/Coupdays.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Coupdays.xls rename to sc/qa/unit/data/xls/opencl/financial/Coupdays.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Coupdaysnc.xls b/sc/qa/unit/data/xls/opencl/financial/Coupdaysnc.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Coupdaysnc.xls rename to sc/qa/unit/data/xls/opencl/financial/Coupdaysnc.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Cumipmt.xls b/sc/qa/unit/data/xls/opencl/financial/Cumipmt.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Cumipmt.xls rename to sc/qa/unit/data/xls/opencl/financial/Cumipmt.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Cumprinc.xls b/sc/qa/unit/data/xls/opencl/financial/Cumprinc.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Cumprinc.xls rename to sc/qa/unit/data/xls/opencl/financial/Cumprinc.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/DISC.xls b/sc/qa/unit/data/xls/opencl/financial/DISC.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/DISC.xls rename to sc/qa/unit/data/xls/opencl/financial/DISC.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Dollarde.xls b/sc/qa/unit/data/xls/opencl/financial/Dollarde.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Dollarde.xls rename to sc/qa/unit/data/xls/opencl/financial/Dollarde.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Dollarfr.xls b/sc/qa/unit/data/xls/opencl/financial/Dollarfr.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Dollarfr.xls rename to sc/qa/unit/data/xls/opencl/financial/Dollarfr.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/EFFECT_ADD.xls b/sc/qa/unit/data/xls/opencl/financial/EFFECT_ADD.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/EFFECT_ADD.xls rename to sc/qa/unit/data/xls/opencl/financial/EFFECT_ADD.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Fvschedule.xls b/sc/qa/unit/data/xls/opencl/financial/Fvschedule.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Fvschedule.xls rename to sc/qa/unit/data/xls/opencl/financial/Fvschedule.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/INTRATE.xls b/sc/qa/unit/data/xls/opencl/financial/INTRATE.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/INTRATE.xls rename to sc/qa/unit/data/xls/opencl/financial/INTRATE.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/IRR.xls b/sc/qa/unit/data/xls/opencl/financial/IRR.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/IRR.xls rename to sc/qa/unit/data/xls/opencl/financial/IRR.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/MIRR.xls b/sc/qa/unit/data/xls/opencl/financial/MIRR.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/MIRR.xls rename to sc/qa/unit/data/xls/opencl/financial/MIRR.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Nominal.xls b/sc/qa/unit/data/xls/opencl/financial/Nominal.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Nominal.xls rename to sc/qa/unit/data/xls/opencl/financial/Nominal.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/PriceMat.xls b/sc/qa/unit/data/xls/opencl/financial/PriceMat.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/PriceMat.xls rename to sc/qa/unit/data/xls/opencl/financial/PriceMat.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/RATE.xls b/sc/qa/unit/data/xls/opencl/financial/RATE.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/RATE.xls rename to sc/qa/unit/data/xls/opencl/financial/RATE.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/RRI.xls b/sc/qa/unit/data/xls/opencl/financial/RRI.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/RRI.xls rename to sc/qa/unit/data/xls/opencl/financial/RRI.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/Received.xls b/sc/qa/unit/data/xls/opencl/financial/Received.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/Received.xls rename to sc/qa/unit/data/xls/opencl/financial/Received.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/SLN.xls b/sc/qa/unit/data/xls/opencl/financial/SLN.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/SLN.xls rename to sc/qa/unit/data/xls/opencl/financial/SLN.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/SYD.xls b/sc/qa/unit/data/xls/opencl/financial/SYD.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/SYD.xls rename to sc/qa/unit/data/xls/opencl/financial/SYD.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/TBILLEQ.xls b/sc/qa/unit/data/xls/opencl/financial/TBILLEQ.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/TBILLEQ.xls rename to sc/qa/unit/data/xls/opencl/financial/TBILLEQ.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/TBILLPRICE.xls b/sc/qa/unit/data/xls/opencl/financial/TBILLPRICE.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/TBILLPRICE.xls rename to sc/qa/unit/data/xls/opencl/financial/TBILLPRICE.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/TBILLYIELD.xls b/sc/qa/unit/data/xls/opencl/financial/TBILLYIELD.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/TBILLYIELD.xls rename to sc/qa/unit/data/xls/opencl/financial/TBILLYIELD.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/XNPV.xls b/sc/qa/unit/data/xls/opencl/financial/XNPV.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/XNPV.xls rename to sc/qa/unit/data/xls/opencl/financial/XNPV.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/YIELD.xls b/sc/qa/unit/data/xls/opencl/financial/YIELD.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/YIELD.xls rename to sc/qa/unit/data/xls/opencl/financial/YIELD.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/YIELDDISC.xls b/sc/qa/unit/data/xls/opencl/financial/YIELDDISC.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/YIELDDISC.xls rename to sc/qa/unit/data/xls/opencl/financial/YIELDDISC.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/YIELDMAT.xls b/sc/qa/unit/data/xls/opencl/financial/YIELDMAT.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/YIELDMAT.xls rename to sc/qa/unit/data/xls/opencl/financial/YIELDMAT.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/general.xls b/sc/qa/unit/data/xls/opencl/financial/general.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/financial/general.xls rename to sc/qa/unit/data/xls/opencl/financial/general.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/math/cos.xls b/sc/qa/unit/data/xls/opencl/math/cos.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/math/cos.xls rename to sc/qa/unit/data/xls/opencl/math/cos.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Fisher.xls b/sc/qa/unit/data/xls/opencl/statistical/Fisher.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Fisher.xls rename to sc/qa/unit/data/xls/opencl/statistical/Fisher.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/FisherInv.xls b/sc/qa/unit/data/xls/opencl/statistical/FisherInv.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/FisherInv.xls rename to sc/qa/unit/data/xls/opencl/statistical/FisherInv.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Gamma.xls b/sc/qa/unit/data/xls/opencl/statistical/Gamma.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Gamma.xls rename to sc/qa/unit/data/xls/opencl/statistical/Gamma.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/GammaLn.xls b/sc/qa/unit/data/xls/opencl/statistical/GammaLn.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/GammaLn.xls rename to sc/qa/unit/data/xls/opencl/statistical/GammaLn.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Gauss.xls b/sc/qa/unit/data/xls/opencl/statistical/Gauss.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Gauss.xls rename to sc/qa/unit/data/xls/opencl/statistical/Gauss.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/GeoMean.xls b/sc/qa/unit/data/xls/opencl/statistical/GeoMean.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/GeoMean.xls rename to sc/qa/unit/data/xls/opencl/statistical/GeoMean.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/HarMean.xls b/sc/qa/unit/data/xls/opencl/statistical/HarMean.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/HarMean.xls rename to sc/qa/unit/data/xls/opencl/statistical/HarMean.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Negbinomdist.xls b/sc/qa/unit/data/xls/opencl/statistical/Negbinomdist.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Negbinomdist.xls rename to sc/qa/unit/data/xls/opencl/statistical/Negbinomdist.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Pearson.xls b/sc/qa/unit/data/xls/opencl/statistical/Pearson.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Pearson.xls rename to sc/qa/unit/data/xls/opencl/statistical/Pearson.xls diff --git a/sc/qa/unit/data/xls/OpenclCase/statistical/Rsq.xls b/sc/qa/unit/data/xls/opencl/statistical/Rsq.xls similarity index 100% rename from sc/qa/unit/data/xls/OpenclCase/statistical/Rsq.xls rename to sc/qa/unit/data/xls/opencl/statistical/Rsq.xls diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx index 2967c36..c595101 100644 --- a/sc/qa/unit/opencl-test.cxx +++ b/sc/qa/unit/opencl-test.cxx @@ -181,12 +181,12 @@ void ScOpenclTest::testCompilerNested() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenCLTests/Compiler/nested.", ODS); + ScDocShellRef xDocSh = loadDoc("opencl/compiler/nested.", ODS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenCLTests/Compiler/nested.", ODS); + ScDocShellRef xDocShRes = loadDoc("opencl/compiler/nested.", ODS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -205,12 +205,14 @@ void ScOpenclTest::testCompilerString() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenCLTests/Compiler/string.", ODS); + ScDocShellRef xDocSh = loadDoc("opencl/compiler/string.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenCLTests/Compiler/string.", ODS); + ScDocShellRef xDocShRes = loadDoc("opencl/compiler/string.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocShRes.Is()); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -232,12 +234,14 @@ void ScOpenclTest::testCompilerInEq() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenCLTests/Compiler/ineq.", ODS); + ScDocShellRef xDocSh = loadDoc("opencl/compiler/ineq.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenCLTests/Compiler/ineq.", ODS); + ScDocShellRef xDocShRes = loadDoc("opencl/compiler/ineq.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocShRes.Is()); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -416,11 +420,11 @@ void ScOpenclTest::testMathFormulaCos() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/math/cos.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/math/cos.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/math/cos.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/math/cos.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 15; ++i) @@ -438,12 +442,12 @@ void ScOpenclTest::testFinacialFormula() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/general.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/general.", XLS); CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/general.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/general.", XLS); CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocShRes.Is()); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); @@ -596,10 +600,12 @@ void ScOpenclTest::testStatisticalFormulaCorrel() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenCLTests/statistical/Correl.", ODS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Correl.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenCLTests/statistical/Correl.", ODS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Correl.", ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocShRes.Is()); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -618,10 +624,10 @@ void ScOpenclTest::testStatisticalFormulaFisher() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Fisher.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Fisher.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Fisher.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Fisher.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -640,10 +646,10 @@ void ScOpenclTest::testStatisticalFormulaFisherInv() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/FisherInv.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/FisherInv.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/FisherInv.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/FisherInv.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -662,10 +668,10 @@ void ScOpenclTest::testStatisticalFormulaGamma() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Gamma.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Gamma.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Gamma.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Gamma.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -683,11 +689,11 @@ void ScOpenclTest::testFinacialFvscheduleFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Fvschedule.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Fvschedule.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Fvschedule.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Fvschedule.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -705,11 +711,11 @@ void ScOpenclTest::testFinacialSYDFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/SYD.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/SYD.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/SYD.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/SYD.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -727,11 +733,11 @@ void ScOpenclTest::testFinacialIRRFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/IRR.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/IRR.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/IRR.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/IRR.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -749,11 +755,11 @@ void ScOpenclTest::testStatisticalFormulaGammaLn() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/GammaLn.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/GammaLn.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/GammaLn.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/GammaLn.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -771,11 +777,11 @@ void ScOpenclTest::testStatisticalFormulaGauss() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Gauss.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Gauss.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Gauss.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Gauss.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -793,10 +799,10 @@ void ScOpenclTest::testStatisticalFormulaGeoMean() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/GeoMean.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/GeoMean.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/GeoMean.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/GeoMean.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -814,10 +820,10 @@ void ScOpenclTest::testStatisticalFormulaHarMean() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/HarMean.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/HarMean.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/HarMean.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/HarMean.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -835,11 +841,11 @@ void ScOpenclTest::testFinacialSLNFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/SLN.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/SLN.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/SLN.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/SLN.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -857,11 +863,11 @@ void ScOpenclTest::testFinacialMIRRFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/MIRR.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/MIRR.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/MIRR.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/MIRR.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -880,11 +886,11 @@ void ScOpenclTest::testFinancialCoupdaybsFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Coupdaybs.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Coupdaybs.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Coupdaybs.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Coupdaybs.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <=10; ++i) @@ -901,11 +907,11 @@ void ScOpenclTest::testFinacialDollardeFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Dollarde.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Dollarde.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Dollarde.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Dollarde.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -923,11 +929,11 @@ void ScOpenclTest::testFinancialCoupdaysFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Coupdays.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Coupdays.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Coupdays.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Coupdays.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <=10; ++i) @@ -944,11 +950,11 @@ void ScOpenclTest::testFinancialCoupdaysncFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Coupdaysnc.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Coupdaysnc.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Coupdaysnc.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Coupdaysnc.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <=10; ++i) @@ -964,11 +970,11 @@ void ScOpenclTest::testFinacialRateFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/RATE.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/RATE.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/RATE.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/RATE.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <= 5; ++i) @@ -986,11 +992,11 @@ void ScOpenclTest::testFinancialAccrintmFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Accrintm.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Accrintm.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Accrintm.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Accrintm.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <= 10; ++i) @@ -1007,10 +1013,10 @@ void ScOpenclTest::testStatisticalFormulaNegbinomdist() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Negbinomdist." ,XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Negbinomdist." ,XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Negbinomdist." ,XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Negbinomdist." ,XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1029,11 +1035,11 @@ void ScOpenclTest::testFinacialDollarfrFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Dollarfr.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Dollarfr.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Dollarfr.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Dollarfr.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1051,11 +1057,11 @@ void ScOpenclTest::testFinacialDISCFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/DISC.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/DISC.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/DISC.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/DISC.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1073,11 +1079,11 @@ void ScOpenclTest::testFinacialINTRATEFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/INTRATE.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/INTRATE.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/INTRATE.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/INTRATE.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1095,10 +1101,10 @@ void ScOpenclTest::testStatisticalFormulaPearson() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Pearson.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Pearson.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Pearson.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Pearson.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1116,10 +1122,10 @@ void ScOpenclTest::testStatisticalFormulaRsq() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/statistical/Rsq.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/statistical/Rsq.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/statistical/Rsq.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/statistical/Rsq.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1137,11 +1143,11 @@ void ScOpenclTest::testMathFormulaCsc() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenCLTests/math/csc.", ODS); + ScDocShellRef xDocSh = loadDoc("opencl/math/csc.", ODS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenCLTests/math/csc.", ODS); + ScDocShellRef xDocShRes = loadDoc("opencl/math/csc.", ODS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 15; ++i) @@ -1158,11 +1164,11 @@ void ScOpenclTest::testFinacialXNPVFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/XNPV.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/XNPV.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/XNPV.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/XNPV.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 1; i <= 9; ++i) @@ -1185,11 +1191,11 @@ void ScOpenclTest::testFinacialPriceMatFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/PriceMat.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/PriceMat.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/PriceMat.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/PriceMat.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1205,10 +1211,10 @@ void ScOpenclTest::testFinacialFormulaReceived() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Received.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Received.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Received.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Received.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1225,10 +1231,10 @@ void ScOpenclTest::testFinancialFormulaCumipmt() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Cumipmt.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Cumipmt.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Cumipmt.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Cumipmt.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1245,10 +1251,10 @@ void ScOpenclTest::testFinancialFormulaCumprinc() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Cumprinc.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Cumprinc.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Cumprinc.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Cumprinc.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1265,11 +1271,11 @@ void ScOpenclTest::testFinacialRRIFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/RRI.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/RRI.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/RRI.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/RRI.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1285,11 +1291,11 @@ void ScOpenclTest::testFinacialEFFECT_ADDFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/EFFECT_ADD.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/EFFECT_ADD.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/EFFECT_ADD.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/EFFECT_ADD.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 9; ++i) @@ -1306,10 +1312,10 @@ void ScOpenclTest::testFinacialNominalFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/Nominal.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/Nominal.", XLS); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/Nominal.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/Nominal.", XLS); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); // Check the results of formula cells in the shared formula range. @@ -1326,11 +1332,11 @@ void ScOpenclTest::testFinacialTBILLEQFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/TBILLEQ.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/TBILLEQ.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/TBILLEQ.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/TBILLEQ.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -1346,11 +1352,11 @@ void ScOpenclTest::testFinacialTBILLPRICEFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/TBILLPRICE.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/TBILLPRICE.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/TBILLPRICE.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/TBILLPRICE.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -1366,11 +1372,11 @@ void ScOpenclTest::testFinacialTBILLYIELDFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/TBILLYIELD.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/TBILLYIELD.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/TBILLYIELD.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/TBILLYIELD.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -1386,11 +1392,11 @@ void ScOpenclTest::testFinacialYIELDFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/YIELD.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/YIELD.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/YIELD.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/YIELD.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -1407,11 +1413,11 @@ void ScOpenclTest::testFinacialYIELDDISCFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/YIELDDISC.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/YIELDDISC.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/YIELDDISC.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/YIELDDISC.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) @@ -1428,11 +1434,11 @@ void ScOpenclTest::testFinacialYIELDMATFormula() { if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/YIELDMAT.", XLS); + ScDocShellRef xDocSh = loadDoc("opencl/financial/YIELDMAT.", XLS); ScDocument *pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/YIELDMAT.", XLS); + ScDocShellRef xDocShRes = loadDoc("opencl/financial/YIELDMAT.", XLS); ScDocument *pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); for (SCROW i = 0; i <= 6; ++i) commit 8a48889071a07b9e79d54c1d8ad83389d1b285a5 Author: Kohei Yoshida <[email protected]> Date: Wed Oct 30 08:57:06 2013 -0400 Re-add missing test file and re-enable previously disabled test. Changed the name to remove camel casing in file names. Change-Id: Ie62c35c1f7285efafd3ef9a7473d754c9f8e8147 diff --git a/sc/qa/unit/data/xls/OpenclCase/financial/general.xls b/sc/qa/unit/data/xls/OpenclCase/financial/general.xls new file mode 100644 index 0000000..bac5511 Binary files /dev/null and b/sc/qa/unit/data/xls/OpenclCase/financial/general.xls differ diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx index 1816eeb..2967c36 100644 --- a/sc/qa/unit/opencl-test.cxx +++ b/sc/qa/unit/opencl-test.cxx @@ -106,7 +106,7 @@ public: void testFinacialYIELDMATFormula(); CPPUNIT_TEST_SUITE(ScOpenclTest); // CPPUNIT_TEST(testSharedFormulaXLS); -// CPPUNIT_TEST(testFinacialFormula); + CPPUNIT_TEST(testFinacialFormula); CPPUNIT_TEST(testStatisticalFormulaFisher); CPPUNIT_TEST(testStatisticalFormulaFisherInv); CPPUNIT_TEST(testStatisticalFormulaGamma); @@ -438,12 +438,12 @@ void ScOpenclTest::testFinacialFormula() if (!enableOpenCL()) return; - ScDocShellRef xDocSh = loadDoc("FinancialFormulaTest.", XLS); + ScDocShellRef xDocSh = loadDoc("OpenclCase/financial/general.", XLS); CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); - ScDocShellRef xDocShRes = loadDoc("FinancialFormulaTest.", XLS); + ScDocShellRef xDocShRes = loadDoc("OpenclCase/financial/general.", XLS); CPPUNIT_ASSERT_MESSAGE("Failed to load document.", xDocShRes.Is()); ScDocument* pDocRes = xDocShRes->GetDocument(); CPPUNIT_ASSERT(pDocRes); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
