diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-12 17:22:08 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-12 17:22:08 +0200 |
commit | 60965ca1431b2b3bed4f49e6bf1a9d5e5d86a3d9 (patch) | |
tree | fa288d485a067139807c45325e0e20facc226b18 /tests/SinkTest.cmake | |
parent | 10c1fb64c8ea025308e04b68021c34667ec99ed8 (diff) | |
download | sink-60965ca1431b2b3bed4f49e6bf1a9d5e5d86a3d9.tar.gz sink-60965ca1431b2b3bed4f49e6bf1a9d5e5d86a3d9.zip |
Don't include valgrind checks by default
...because it makes "make test" useless.
Diffstat (limited to 'tests/SinkTest.cmake')
-rw-r--r-- | tests/SinkTest.cmake | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/SinkTest.cmake b/tests/SinkTest.cmake index e066315..03076e7 100644 --- a/tests/SinkTest.cmake +++ b/tests/SinkTest.cmake | |||
@@ -1,12 +1,15 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | function(add_memcheck_test name binary) | 3 | function(add_memcheck_test name binary) |
4 | set(memcheck_command "${MEMORYCHECK_COMMAND} ${MEMORYCHECK_COMMAND_OPTIONS}") | 4 | if (${ENABLE_MEMCHECK}) |
5 | if (NOT ${memcheck_command}) | 5 | set(memcheck_command "${MEMORYCHECK_COMMAND} ${MEMORYCHECK_COMMAND_OPTIONS}") |
6 | message("MEMORYCHECK_COMMAND not defined.") | 6 | if (NOT ${memcheck_command}) |
7 | message("MEMORYCHECK_COMMAND not defined.") | ||
8 | else() | ||
9 | separate_arguments(memcheck_command) | ||
10 | add_test(memcheck_${name} ${memcheck_command} ./${binary} ${ARGN}) | ||
11 | endif() | ||
7 | endif() | 12 | endif() |
8 | separate_arguments(memcheck_command) | ||
9 | add_test(memcheck_${name} ${memcheck_command} ./${binary} ${ARGN}) | ||
10 | endfunction(add_memcheck_test) | 13 | endfunction(add_memcheck_test) |
11 | 14 | ||
12 | macro(auto_tests) | 15 | macro(auto_tests) |