CMake: Move performance tests under the cmake option
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Apr 2015 13:30:26 +0000 (18:30 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Apr 2015 13:30:26 +0000 (18:30 +0500)
This way running full sweep of regression tests does not require
waiting for the performance test to finish.

CMakeLists.txt
tests/gtests/blenlib/CMakeLists.txt

index 03b7f229eb4912d79cf56994eb3a0b4153850e7d..cd37aa174687bc66238c3e5405c27c4fe100d61a 100644 (file)
@@ -395,6 +395,7 @@ option(WITH_BOOST                                   "Enable features depending on boost" ON)
 
 # Unit testsing
 option(WITH_GTESTS "Enable GTest unit testing" OFF)
+option(WITH_TESTS_PERFORMANCE "Enable performance tests" OFF)
 
 
 # Documentation
index 152b65617a418eb61f0a6c7389625b05fb0fdad6..20b876053d9483d44b40df6d3c12d5c4172d1534 100644 (file)
@@ -45,4 +45,6 @@ BLENDER_TEST(BLI_listbase "bf_blenlib")
 BLENDER_TEST(BLI_hash_mm2a "bf_blenlib")
 BLENDER_TEST(BLI_ghash "bf_blenlib")
 
-BLENDER_TEST(BLI_ghash_performance "bf_blenlib")
+if(WITH_TESTS_PERFORMANCE)
+       BLENDER_TEST(BLI_ghash_performance "bf_blenlib")
+endif()