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
Antoine Belvire
otb
Commits
90ac1cb1
Commit
90ac1cb1
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
TEST: fix test 0000478-UncaughtException to avoid hardcoded path
parent
c0b8cc65
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/Fa/Failing/0000478-UncaughtException.cxx
+9
-8
9 additions, 8 deletions
Testing/Fa/Failing/0000478-UncaughtException.cxx
Testing/Fa/Failing/CMakeLists.txt
+6
-4
6 additions, 4 deletions
Testing/Fa/Failing/CMakeLists.txt
with
15 additions
and
12 deletions
Testing/Fa/Failing/0000478-UncaughtException.cxx
+
9
−
8
View file @
90ac1cb1
...
...
@@ -20,16 +20,17 @@
int
main
(
int
argc
,
char
*
argv
[])
{
typedef
otb
::
Wrapper
::
Application
AppType
;
using
otb
::
Wrapper
::
ApplicationRegistry
;
using
otb
::
Wrapper
::
Application
;
if
(
argc
!=
4
)
if
(
argc
!=
5
)
{
std
::
cout
<<
"Usage: 0000478-UncaughtException stereo_ref stereo_sec output_file"
<<
std
::
endl
;
std
::
cout
<<
"Usage: 0000478-UncaughtException
app_module_path
stereo_ref stereo_sec output_file"
<<
std
::
endl
;
return
1
;
}
otb
::
Wrapper
::
ApplicationRegistry
::
SetApplicationPath
(
"/home2/gpasero/ORFEO-TOOLBOX/otb-build/OTB-bin/bin"
);
App
Type
::
Pointer
myApp
=
otb
::
Wrapper
::
ApplicationRegistry
::
CreateApplication
(
"StereoSensorModelToElevationMap"
);
ApplicationRegistry
::
SetApplicationPath
(
argv
[
1
]
);
App
lication
::
Pointer
myApp
=
ApplicationRegistry
::
CreateApplication
(
"StereoSensorModelToElevationMap"
);
if
(
myApp
.
IsNull
())
{
...
...
@@ -39,9 +40,9 @@ int main(int argc,char* argv[])
myApp
->
Init
();
myApp
->
SetParameterString
(
"ref"
,
argv
[
1
]);
myApp
->
SetParameterString
(
"sec"
,
argv
[
2
]);
myApp
->
SetParameterString
(
"out"
,
argv
[
3
]);
myApp
->
SetParameterString
(
"ref"
,
argv
[
2
]);
myApp
->
SetParameterString
(
"sec"
,
argv
[
3
]);
myApp
->
SetParameterString
(
"out"
,
argv
[
4
]);
myApp
->
SetParameterString
(
"elev"
,
"dem"
);
myApp
->
SetParameterString
(
"elev.dem.path"
,
"FAKE_DEM_PATH"
);
myApp
->
SetParameterString
(
"elev.dem.geoid"
,
"FAKE_GEOID_PATH"
);
...
...
This diff is collapsed.
Click to expand it.
Testing/Fa/Failing/CMakeLists.txt
+
6
−
4
View file @
90ac1cb1
...
...
@@ -20,10 +20,12 @@ ADD_TEST(FA-000209-SVMValidationLinearlySeparableWithProbEstimate_KO ${CXX_TEST_
0000209-SVMValidationLinearlySeparableProbEstimation 500 500 0.0025 0.0075 0.0075 0.0025 0. 0.0025 0. 0.0025 0 1
)
# ------- Uncaught exception in applications ----------------------
ADD_TEST
(
FA-0000478-UncaughtException
${
CXX_TEST_PATH
}
/0000478-UncaughtException
${
OTB_DATA_ROOT
}
/Examples/sensor_stereo_left.tif
${
OTB_DATA_ROOT
}
/Examples/sensor_stereo_right.tif
${
TEMP
}
/FA-0000478-output.tif
)
ADD_TEST
(
NAME FA-0000478-UncaughtException
COMMAND
${
CXX_TEST_PATH
}
/0000478-UncaughtException
$<TARGET_FILE_DIR:otbapp_StereoSensorModelToElevationMap>
${
OTB_DATA_ROOT
}
/Examples/sensor_stereo_left.tif
${
OTB_DATA_ROOT
}
/Examples/sensor_stereo_right.tif
${
TEMP
}
/FA-0000478-output.tif
)
ADD_EXECUTABLE
(
0000478-UncaughtException 0000478-UncaughtException.cxx
)
TARGET_LINK_LIBRARIES
(
0000478-UncaughtException OTBIO OTBCommon OTBApplicationEngine
)
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