Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
4ccbe60f
Commit
4ccbe60f
authored
5 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
BUG: add application path to test
parent
007ce417
No related branches found
Branches containing commit
No related tags found
3 merge requests
!648
Ci rcjob
,
!621
Release 7.0 (master)
,
!567
Crash bandmathx
Pipeline
#2373
passed
5 years ago
Stage: precheck
Stage: prepare
Stage: build
Stage: report
Stage: external
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Applications/AppMathParserX/test/CMakeLists.txt
+1
-0
1 addition, 0 deletions
Modules/Applications/AppMathParserX/test/CMakeLists.txt
Modules/Applications/AppMathParserX/test/otbBandMathXAppTests.cxx
+2
-2
2 additions, 2 deletions
...Applications/AppMathParserX/test/otbBandMathXAppTests.cxx
with
3 additions
and
2 deletions
Modules/Applications/AppMathParserX/test/CMakeLists.txt
+
1
−
0
View file @
4ccbe60f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Modules/Applications/AppMathParserX/test/otbBandMathXAppTests.cxx
+
2
−
2
View file @
4ccbe60f
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment