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
0425638f
Commit
0425638f
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: use the CommandLineLauncher for the application tests
parent
c8875e39
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/Applications/CMakeLists.txt
+7
-23
7 additions, 23 deletions
Testing/Applications/CMakeLists.txt
Testing/Applications/Util/CMakeLists.txt
+23
-0
23 additions, 0 deletions
Testing/Applications/Util/CMakeLists.txt
with
30 additions
and
23 deletions
Testing/Applications/CMakeLists.txt
+
7
−
23
View file @
0425638f
set
(
CXX_TEST_PATH
${
EXECUTABLE_OUTPUT_PATH
}
)
set
(
INPUTDATA
${
OTB_DATA_ROOT
}
/Input
)
set
(
INPUTDATA
${
OTB_DATA_ROOT
}
/Input
)
set
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
set
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
if
(
WIN32
)
add_subdirectory
(
Util
)
add_definitions
(
-DWIN32
)
endif
(
WIN32
)
# ---------------- Smoothing example test
set
(
APPLICATIONS_TESTS
${
CXX_TEST_PATH
}
/otbWrapperExampleTests_Smoothing
)
add_test
(
NAME exTvRescaleTest
add_test
(
NAME exTvRescaleTest
COMMAND otbApplicationLauncherCommandLine
COMMAND otbApplicationLauncherCommandLine
...
@@ -20,24 +13,15 @@ add_test(NAME exTvRescaleTest
...
@@ -20,24 +13,15 @@ add_test(NAME exTvRescaleTest
--outmax 150
)
--outmax 150
)
add_test
(
NAME exTvSmoothingTest
add_test
(
NAME exTvSmoothingTest
COMMAND otb
WrapperExampleTests
COMMAND otb
ApplicationLauncherCommandLine
otb
Smoothing
Test
Smoothing
$<TARGET_FILE_DIR:otbapp_Smoothing>
--modulePath
$<TARGET_FILE_DIR:otbapp_Smoothing>
${
INPUTDATA
}
/poupees.tif
--in
${
INPUTDATA
}
/poupees.tif
${
TEMP
}
/owTvSmoothingTest2.tif
)
--out
${
TEMP
}
/owTvSmoothingTest2.tif
--type mean
)
add_test
(
NAME exTvReadImageInfoTest
add_test
(
NAME exTvReadImageInfoTest
COMMAND otbApplicationLauncherCommandLine
COMMAND otbApplicationLauncherCommandLine
ReadImageInfo
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
INPUTDATA
}
/poupees.tif
)
--in
${
INPUTDATA
}
/poupees.tif
)
add_executable
(
otbWrapperExampleTests
otbWrapperExampleTests.cxx
otbRescaleTest.cxx
otbSmoothingTest.cxx
otbReadImageInfoTest.cxx
)
target_link_libraries
(
otbWrapperExampleTests OTBApplicationEngine OTBTesting
)
This diff is collapsed.
Click to expand it.
Testing/Applications/Util/CMakeLists.txt
0 → 100644
+
23
−
0
View file @
0425638f
add_test
(
NAME exTvRescaleTest
COMMAND otbApplicationLauncherCommandLine
Rescale
--modulePath $<TARGET_FILE_DIR:otbapp_Rescale>
--in
${
INPUTDATA
}
/poupees.tif
--out
${
TEMP
}
/owTvRescaleTest.tif
--outmin 20
--outmax 150
)
add_test
(
NAME exTvSmoothingTest
COMMAND otbApplicationLauncherCommandLine
Smoothing
--modulePath $<TARGET_FILE_DIR:otbapp_Smoothing>
--in
${
INPUTDATA
}
/poupees.tif
--out
${
TEMP
}
/owTvSmoothingTest2.tif
--type mean
)
add_test
(
NAME exTvReadImageInfoTest
COMMAND otbApplicationLauncherCommandLine
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
INPUTDATA
}
/poupees.tif
)
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