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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
fbe641d5
Commit
fbe641d5
authored
14 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
TEST:add test for otbWrapperParameters
parent
8a93bf0e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/CMakeLists.txt
+1
-0
1 addition, 0 deletions
Testing/CMakeLists.txt
Testing/otbWrapperParameterTest.cxx
+12
-3
12 additions, 3 deletions
Testing/otbWrapperParameterTest.cxx
with
13 additions
and
3 deletions
Testing/CMakeLists.txt
+
1
−
0
View file @
fbe641d5
...
@@ -12,6 +12,7 @@ ADD_TEST(owTuParameterNew ${OTB_WRAPPER_TESTS}
...
@@ -12,6 +12,7 @@ ADD_TEST(owTuParameterNew ${OTB_WRAPPER_TESTS}
ADD_TEST
(
owTvParameter
${
OTB_WRAPPER_TESTS
}
ADD_TEST
(
owTvParameter
${
OTB_WRAPPER_TESTS
}
otbWrapperParameterTest1
otbWrapperParameterTest1
"param1"
)
)
# ------- Source files CXX -----------------------------------
# ------- Source files CXX -----------------------------------
...
...
This diff is collapsed.
Click to expand it.
Testing/otbWrapperParameterTest.cxx
+
12
−
3
View file @
fbe641d5
...
@@ -36,7 +36,16 @@ int otbWrapperParameterTest1(int argc, char* argv[])
...
@@ -36,7 +36,16 @@ int otbWrapperParameterTest1(int argc, char* argv[])
typedef
otb
::
Wrapper
::
Parameter
ParameterBaseType
;
typedef
otb
::
Wrapper
::
Parameter
ParameterBaseType
;
ParameterBaseType
::
Pointer
parameter
=
ParameterBaseType
::
New
();
ParameterBaseType
::
Pointer
parameter
=
ParameterBaseType
::
New
();
std
::
cout
<<
parameter
<<
std
::
endl
;
const
string
name
=
argv
[
1
];
return
EXIT_SUCCESS
;
parameter
->
SetName
(
name
);
if
(
name
==
parameter
->
GetName
())
{
return
EXIT_SUCCESS
;
}
else
{
return
EXIT_FAILURE
;
}
}
}
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