[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [dferry] tests/events: Rename timer test to timer_slow.
From: Andreas Hartmetz <ahartmetz () gmail ! com>
Date: 2016-10-12 0:57:08
Message-ID: E1bu7r2-0007PZ-2T () code ! kde ! org
[Download RAW message or body]
Git commit 31cafee6998637d6435b4c384a02301d78162c3d by Andreas Hartmetz.
Committed on 11/10/2016 at 22:14.
Pushed by ahartmetz into branch 'master'.
Rename timer test to timer_slow.
As I just learned, ctest -E can filter out tests by regular
expression. So instead of creating separate targets for
- fast tests (to run often)
- slow tests (to run less often, maybe when about to commit)
just run ctest -E _slow to run only the tests that don't take
a long time.
M +1 -1 tests/events/CMakeLists.txt
R +0 -0 tests/events/tst_timer_slow.cpp [from: tests/events/tst_timer.cpp - 100% similarity]
http://commits.kde.org/dferry/31cafee6998637d6435b4c384a02301d78162c3d
diff --git a/tests/events/CMakeLists.txt b/tests/events/CMakeLists.txt
index d8cb44c..7645902 100644
--- a/tests/events/CMakeLists.txt
+++ b/tests/events/CMakeLists.txt
@@ -1,4 +1,4 @@
-foreach(_testname timer)
+foreach(_testname timer_slow)
add_executable(tst_${_testname} tst_${_testname}.cpp)
set_target_properties(tst_${_testname}
PROPERTIES COMPILE_FLAGS -DTEST_DATADIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
diff --git a/tests/events/tst_timer.cpp b/tests/events/tst_timer_slow.cpp
similarity index 100%
rename from tests/events/tst_timer.cpp
rename to tests/events/tst_timer_slow.cpp
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic