Commit c5957369 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: use proper export for TestKernel, no code in header

parent b474d855
......@@ -30,6 +30,7 @@
#include "otbStringUtils.h"
#include "otbMetaDataKey.h"
#include "OTBTestKernelExport.h"
class OGRFeature;
class OGRGeometry;
......@@ -43,7 +44,7 @@ namespace otb
*
* \ingroup OTBTestKernel
*/
class ITK_ABI_EXPORT TestHelper : public itk::Object
class OTBTestKernel_EXPORT TestHelper : public itk::Object
{
public:
......@@ -59,19 +60,9 @@ public:
typedef std::vector<std::string> StringList;
typedef StringList::const_iterator StringListIt;
TestHelper() :
m_ToleranceDiffValue(0),
m_Epsilon(0),
m_EpsilonBoundaryChecking(1.0e-30),
m_ReportErrors(false),
m_IgnoreLineOrder(false),
m_MaxArea(1024*1024)
{
m_SpecialTokens.push_back(std::pair<std::string,std::string>(
std::string("Integer"),std::string("Integer64")));
}
~TestHelper() override{}
TestHelper();
~TestHelper() override;
int RegressionTestAllImages(const StringList& baselineFilenamesImage,
const StringList& testFilenamesImage);
......
......@@ -25,6 +25,7 @@ to instantiate it and another one which uses the class. The output of each test
the result hasn't changed.")
otb_module(OTBTestKernel
ENABLE_SHARED
DEPENDS
OTBGdalAdapters
OTBImageIO
......
......@@ -2651,4 +2651,20 @@ void TestHelper::ogrReportOnLayer(OGRLayer * ref_poLayer,
}
TestHelper::TestHelper() :
m_ToleranceDiffValue(0),
m_Epsilon(0),
m_EpsilonBoundaryChecking(1.0e-30),
m_ReportErrors(false),
m_IgnoreLineOrder(false),
m_MaxArea(1024*1024)
{
m_SpecialTokens.push_back(std::pair<std::string,std::string>(
std::string("Integer"),std::string("Integer64")));
}
TestHelper::~TestHelper()
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment