From 42e427905cd77dc5e8d805b121c754e1be54737f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 20 Apr 2015 18:30:26 +0500 Subject: CMake: Move performance tests under the cmake option This way running full sweep of regression tests does not require waiting for the performance test to finish. --- CMakeLists.txt | 1 + tests/gtests/blenlib/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03b7f229eb4..cd37aa17468 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/tests/gtests/blenlib/CMakeLists.txt b/tests/gtests/blenlib/CMakeLists.txt index 152b65617a4..20b876053d9 100644 --- a/tests/gtests/blenlib/CMakeLists.txt +++ b/tests/gtests/blenlib/CMakeLists.txt @@ -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() -- cgit v1.2.3