Skip to content
Snippets Groups Projects
Commit fc92d429 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: added a test driver for the AppImageUtils module

parent a6d3fa0e
No related branches found
No related tags found
No related merge requests found
......@@ -20,15 +20,17 @@
otb_module_test()
set(OTBExtractROIAppTest
set(OTBAppImageUtilsTests
otbAppImageUtilsTestDriver.cxx
otbExtractROIAppTests.cxx
)
add_executable(OTBExtractROIAppTest ${OTBExtractROIAppTest})
target_link_libraries(OTBExtractROIAppTest ${OTBAppImageUtils-Test_LIBRARIES})
otb_module_target_label(OTBExtractROIAppTest)
add_executable(otbAppImageUtilsTestDriver ${OTBAppImageUtilsTests})
target_link_libraries(otbAppImageUtilsTestDriver ${OTBAppImageUtils-Test_LIBRARIES})
otb_module_target_label(otbAppImageUtilsTestDriver)
otb_add_test(NAME apTvUtExtractROI COMMAND OTBExtractROIAppTest
otb_add_test(NAME apTvUtExtractROI COMMAND otbAppImageUtilsTestDriver
otbExtractROIAppTests
$<TARGET_FILE_DIR:otbapp_ExtractROI>
)
......
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbTestMain.h"
void RegisterTests()
{
REGISTER_TEST(otbExtractROIAppTests);
}
......@@ -134,7 +134,7 @@ void extract_roi_radius(ApplicationPointerType app, std::string unitc, std::stri
app->Execute();
}
int main(int argc, char * argv[])
int otbExtractROIAppTests(int argc, char * argv[])
{
unsigned int imageSize = 10;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment