aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-20 11:11:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:03 -0300
commita410f0533e918b3478d2d1cd421f2d273e57fb24 (patch)
tree4a59beb73660f28d26efc12badf4231fcc450173 /tests
parent419851922f8b12b0d93a6ce1f884f6975c1adfd7 (diff)
Added a build option to compile and run only the minimal set of tests.
Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt22
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b6053b530..ef84fd2d2 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,8 @@
add_subdirectory(libminimal)
-add_subdirectory(libsample)
-add_subdirectory(libother)
+if(NOT DEFINED MINIMAL_TESTS)
+ add_subdirectory(libsample)
+ add_subdirectory(libother)
+endif()
if(WIN32 OR DEFINED AVOID_PROTECTED_HACK)
message(STATUS "Tests will be generated avoiding the protected hack!")
@@ -11,12 +13,18 @@ else()
endif()
add_subdirectory(minimalbinding)
-add_subdirectory(samplebinding)
-add_subdirectory(otherbinding)
+if(NOT DEFINED MINIMAL_TESTS)
+ add_subdirectory(samplebinding)
+ add_subdirectory(otherbinding)
+endif()
-file(GLOB TEST_FILES minimalbinding/*_test.py
- samplebinding/*_test.py
- otherbinding/*_test.py)
+if(DEFINED MINIMAL_TESTS)
+ file(GLOB TEST_FILES minimalbinding/*_test.py)
+else()
+ file(GLOB TEST_FILES minimalbinding/*_test.py
+ samplebinding/*_test.py
+ otherbinding/*_test.py)
+endif()
set(test_blacklist "")