Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
143eb4b6
Commit
143eb4b6
authored
Mar 18, 2013
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: avoid compiling tests relying on ApplicationsWrapper when OTB_WRAP_QT is not set
parent
bb925623
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
18 deletions
+63
-18
Testing/Common/CMakeLists.txt
Testing/Common/CMakeLists.txt
+32
-16
Testing/Common/mvdCommonTests.cxx
Testing/Common/mvdCommonTests.cxx
+0
-2
Testing/Common/mvdCommonTests1.cxx
Testing/Common/mvdCommonTests1.cxx
+31
-0
No files found.
Testing/Common/CMakeLists.txt
View file @
143eb4b6
...
...
@@ -9,6 +9,7 @@ if(OTB_DATA_USE_LARGEINPUT)
endif
(
OTB_DATA_USE_LARGEINPUT
)
set
(
Common_TESTS
${
CXX_TEST_PATH
}
/mvdCommonTests
)
set
(
Common_TESTS1
${
CXX_TEST_PATH
}
/mvdCommonTests1
)
include_directories
(
${
Monteverdi2_BINARY_DIR
}
...
...
@@ -18,37 +19,52 @@ include_directories(
)
# add source files
set
(
Common_SRCS
mvdApplicationsToolBoxTest.cxx
mvdApplicationsBrowserTest.cxx
mvdFillToolBoxWidgetTreeTest.cxx
)
set
(
Common_SRCS mvdApplicationsToolBoxTest.cxx
)
if
(
OTB_USE_QT
)
set
(
Common_SRCS1
mvdApplicationsBrowserTest.cxx
mvdFillToolBoxWidgetTreeTest.cxx
)
endif
()
#-------------- Monteverdi Common Tests ---------------------------------
# Applications toolBox test
add_test
(
apTvMonteverdi2ApplicationsToolBox
${
Common_TESTS
}
mvdApplicationsToolBoxTest
)
# Applications browser test
add_test
(
apTvMonteverdi2ApplicationsBrowser
${
Common_TESTS
}
mvdApplicationsBrowserTest
${
OTB_DIR
}
/bin
)
# test when OTB_USE_QT is set to ON
if
(
OTB_USE_QT
)
# Fill ToolBox algorithms tree
add_test
(
apTvMonteverdi2FillToolBoxTree
${
Common_TESTS
}
mvdFillToolBoxWidgetTreeTest
${
OTB_DIR
}
/bin
)
# Applications browser test
add_test
(
apTvMonteverdi2ApplicationsBrowser
${
Common_TESTS1
}
mvdApplicationsBrowserTest
${
OTB_DIR
}
/bin
)
# Fill ToolBox algorithms tree
add_test
(
apTvMonteverdi2FillToolBoxTree
${
Common_TESTS1
}
mvdFillToolBoxWidgetTreeTest
${
OTB_DIR
}
/bin
)
endif
()
#-------------- Link ---------------------------------
add_executable
(
mvdCommonTests mvdCommonTests.cxx
${
Common_SRCS
}
)
target_link_libraries
(
mvdCommonTests
Monteverdi2_Gui
Monteverdi2_Core
Monteverdi2_ApplicationsWrapper
OTBTesting
)
if
(
OTB_USE_QT
)
add_executable
(
mvdCommonTests1 mvdCommonTests1.cxx
${
Common_SRCS1
}
)
target_link_libraries
(
mvdCommonTests1
Monteverdi2_Core
Monteverdi2_Gui
Monteverdi2_ApplicationsWrapper
OTBTesting
)
endif
()
Testing/Common/mvdCommonTests.cxx
View file @
143eb4b6
...
...
@@ -27,6 +27,4 @@
void
RegisterTests
()
{
REGISTER_TEST
(
mvdApplicationsToolBoxTest
);
REGISTER_TEST
(
mvdApplicationsBrowserTest
);
REGISTER_TEST
(
mvdFillToolBoxWidgetTreeTest
);
}
Testing/Common/mvdCommonTests1.cxx
0 → 100644
View file @
143eb4b6
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbCommonTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
mvdApplicationsBrowserTest
);
REGISTER_TEST
(
mvdFillToolBoxWidgetTreeTest
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment