Skip to content
Snippets Groups Projects
Commit 048f482b authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Adding a test on th ossim xml parser

parent e825a1e8
Branches
Tags
No related merge requests found
......@@ -52,6 +52,13 @@ ADD_TEST(utTuOssimElevManagerTest ${UTILITIES_TESTS}
ossimElevManagerTest
)
IF(OTB_DATA_USE_LARGEINPUT)
ADD_TEST(utTvOssimXmlDocumentTest ${UTILITIES_TESTS}
ossimXmlDocumentTest
${IMAGEDATA}/TERRASARX/TORONTO/TSX1_SAR__SSC/TSX1_SAR__SSC.xml
)
ENDIF(OTB_DATA_USE_LARGEINPUT)
# ------- lib otbsvm ------------------------------
ADD_TEST(utTuSvmKernelFunctorTest ${UTILITIES_TESTS}
......@@ -433,6 +440,7 @@ SET(UtilitiesTests_SRCS
ossimIntegrationTest.cxx
ossimKeywordlistTest.cxx
ossimElevManagerTest.cxx
ossimXmlDocumentTest.cxx
svmGenericKernelFunctor.cxx
svmTest.cxx
svmGenericKernelTest.cxx
......
/*!
*
* OVERVIEW:
*
* Will reproject the input image to a utm projection.
*
* PURPOSE:
*
* Teach you how to create a renderer and set the view and connect it up to an input
*
*/
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "base/ossimXmlDocument.h"
// this is the most important class and is called as the first line of all applications.
// without this alll the important factories are not created.
#include "init/ossimInit.h"
int ossimXmlDocumentTest(int argc, char* argv[])
{
ossimXmlDocument* xdoc = new ossimXmlDocument();
bool result = xdoc->openFile(argv[1]);
delete xdoc;
if(!result)
{
return EXIT_FAILURE;
}
else
{
return EXIT_SUCCESS;
}
}
......@@ -29,6 +29,7 @@ void RegisterTests()
REGISTER_TEST(ossimIntegrationTest);
REGISTER_TEST(ossimKeywordlistTest);
REGISTER_TEST(ossimElevManagerTest);
REGISTER_TEST(ossimXmlDocumentTest);
REGISTER_TEST(svmGenericKernelFunctor);
REGISTER_TEST(svmTest);
REGISTER_TEST(svmGenericKernelTest);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment