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
ee4ac6c0
Commit
ee4ac6c0
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: remove -- for - in CL test
parent
c8b76609
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/Wrappers/CommandLine/CMakeLists.txt
+24
-24
24 additions, 24 deletions
Testing/Code/Wrappers/CommandLine/CMakeLists.txt
with
24 additions
and
24 deletions
Testing/Code/Wrappers/CommandLine/CMakeLists.txt
+
24
−
24
View file @
ee4ac6c0
...
...
@@ -18,34 +18,34 @@ add_test(NAME clTuWrapperCommandLineParserNew
add_test
(
NAME clTvWrapperCommandLineParserTest_GetAtt
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest1
"-
-
key"
"this is a line test to extract
-
-key name1 name2"
)
"-key"
"this is a line test to extract -key name1 name2"
)
add_test
(
NAME clTvWrapperCommandLineParserTest_IsAttExists_Wrong
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest3
"-
-
m"
" TrainImagesClassifier test
-
-il QB_1_ortho.tif
-
-vd vd .shape "
)
"-m"
" TrainImagesClassifier test -il QB_1_ortho.tif -vd vd .shape "
)
add_test
(
NAME clTvWrapperCommandLineParserTest_IsAttExists
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest4
"-
-
m"
" TrainImagesClassifier test
-
-il QB_1_ortho.tif
-
-vd vd .shape
-
-m name"
)
"-m"
" TrainImagesClassifier test -il QB_1_ortho.tif -vd vd .shape -m name"
)
add_test
(
NAME clTvWrapperCommandLineParserTest_IsAttExistsEnd
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest4
"-
-
m"
" TrainImagesClassifier test
-
-il QB_1_ortho.tif
-
-vd vd .shape
-
-m name"
)
"-m"
" TrainImagesClassifier test -il QB_1_ortho.tif -vd vd .shape -m name"
)
add_test
(
NAME clTvWrapperCommandLineParserTest_IsAttExistsEndNoParam
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest4
"-
-
m"
" TrainImagesClassifier test
-
-il QB_1_ortho.tif
-
-vd vd .shape test
-
-m"
)
"-m"
" TrainImagesClassifier test -il QB_1_ortho.tif -vd vd .shape test -m"
)
add_test
(
NAME clTvWrapperCommandLineParserTest_GetAttWithoutValue
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineParserTest1
"-
-
key"
"-
-
key"
)
"-key"
"-key"
)
SET_TESTS_PROPERTIES
(
clTvWrapperCommandLineParserTest_GetAttWithoutValue PROPERTIES WILL_FAIL true
)
add_test
(
NAME clTvWrapperCommandLineParserTest_NoModule
...
...
@@ -106,24 +106,24 @@ add_test(NAME clTuWrapperCommandLineLauncherNew
add_test
(
NAME clTvWrapperCommandLineLauncherTest
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineLauncherTest
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
-
-in
${
INPUTDATA
}
/poupees.tif
-
-out
${
TEMP
}
/clTvWrapperCommandLineLauncherTest.tif
-
-outmin 15
-
-outmax 200
)
-in
${
INPUTDATA
}
/poupees.tif
-out
${
TEMP
}
/clTvWrapperCommandLineLauncherTest.tif
-outmin 15
-outmax 200
)
add_test
(
NAME clTvWrapperCommandLineLauncherTest_Help
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineLauncherTest
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
"-
-
help"
)
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
"-help"
)
SET_TESTS_PROPERTIES
(
clTvWrapperCommandLineLauncherTest_Help PROPERTIES WILL_FAIL true
)
add_test
(
NAME clTvWrapperCommandLineLauncherTest_Help2
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineLauncherTest
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
-
-in
${
INPUTDATA
}
/poupees.tif
-
-out
${
TEMP
}
/clTvWrapperCommandLineLauncherTest_Help2.tif
-
-outmin 15
-
-outmax 200
-
-help
)
-in
${
INPUTDATA
}
/poupees.tif
-out
${
TEMP
}
/clTvWrapperCommandLineLauncherTest_Help2.tif
-outmin 15
-outmax 200
-help
)
SET_TESTS_PROPERTIES
(
clTvWrapperCommandLineLauncherTest_Help2 PROPERTIES WILL_FAIL true
)
add_test
(
NAME clTvWrapperCommandLineLauncherTest_MissingManParam
...
...
@@ -138,12 +138,12 @@ SET_TESTS_PROPERTIES(clTvWrapperCommandLineLauncherTest_MissingDash PROPERTIES W
add_test
(
NAME clTvWrapperCommandLineLauncherTest_DoubleParam
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineLauncherTest
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
-
-in image1
-
-in image2
)
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale> -in image1 -in image2
)
SET_TESTS_PROPERTIES
(
clTvWrapperCommandLineLauncherTest_DoubleParam PROPERTIES WILL_FAIL true
)
add_test
(
NAME clTvWrapperCommandLineLauncherTest_WrongParam
COMMAND
${
OTB_WRAPPER_COMMAND_LINE_TESTS
}
otbWrapperCommandLineLauncherTest
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale>
-
-inn image
)
"Rescale"
$<TARGET_FILE_DIR:otbapp_Rescale> -inn image
)
SET_TESTS_PROPERTIES
(
clTvWrapperCommandLineLauncherTest_WrongParam PROPERTIES WILL_FAIL true
)
...
...
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