Skip to content
Snippets Groups Projects
Commit 4ccbe60f authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: add application path to test

parent 007ce417
No related branches found
No related tags found
3 merge requests!648Ci rcjob,!621Release 7.0 (master),!567Crash bandmathx
Pipeline #2373 passed
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment