Commit 4ccbe60f authored by Antoine Regimbeau's avatar Antoine Regimbeau

BUG: add application path to test

parent 007ce417
Pipeline #2373 passed with stages
in 74 minutes and 3 seconds
......@@ -29,5 +29,6 @@ target_link_libraries(OTBBandMathXAppTest ${OTBAppMathParserX-Test_LIBRARIES})
otb_module_target_label(OTBBandMathXAppTest)
otb_add_test(NAME apTvUtBandMathX COMMAND OTBBandMathXAppTest
$<TARGET_FILE_DIR:otbapp_BandMathX>
${INPUTDATA}/apTvUtExportBandMathX.txt
)
\ No newline at end of file
......@@ -69,6 +69,7 @@ int main(int , char * argv[] )
VectorImageType::IndexType index;
index.Fill(3); // Center of the images
std::cout<<"Create application"<<std::endl;
otb::Wrapper::ApplicationRegistry::SetApplicationPath(argv[1]);
auto app = otb::Wrapper::ApplicationRegistry::CreateApplication("BandMathX");
app->AddImageToParameterInputImageList("il", img1);
app->UpdateParameters();
......@@ -113,8 +114,7 @@ int main(int , char * argv[] )
return_val++;
}
std::string context_path(argv[1]);
app->SetParameterString("incontext",argv[1]);
app->SetParameterString("incontext",argv[2]);
// val is set in the context to 1
app->UpdateParameters();
desc = app->GetParameterDescription("exp");
......
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