From a410f0533e918b3478d2d1cd421f2d273e57fb24 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Wed, 20 Jul 2011 11:11:03 -0300 Subject: Added a build option to compile and run only the minimal set of tests. Reviewed by Hugo Parente Reviewed by Luciano Wolf --- tests/CMakeLists.txt | 22 +++++++++++++++------- 1 file 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 "") -- cgit v1.2.3