diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 09:30:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 09:30:20 +0200 |
commit | b23948efa2484ac1a37afdb0d077296f6c7f7e0f (patch) | |
tree | 38ffe9c12a26810547a8069245a8eb2906b35956 /tests/SinkTest.cmake | |
parent | 6434a87199b3259e9002570332beaa8caf5d2213 (diff) | |
download | sink-b23948efa2484ac1a37afdb0d077296f6c7f7e0f.tar.gz sink-b23948efa2484ac1a37afdb0d077296f6c7f7e0f.zip |
Shared test macros
Diffstat (limited to 'tests/SinkTest.cmake')
-rw-r--r-- | tests/SinkTest.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/SinkTest.cmake b/tests/SinkTest.cmake new file mode 100644 index 0000000..efc1273 --- /dev/null +++ b/tests/SinkTest.cmake | |||
@@ -0,0 +1,17 @@ | |||
1 | |||
2 | macro(auto_tests) | ||
3 | foreach(_testname ${ARGN}) | ||
4 | add_executable(${_testname} ${_testname}.cpp) | ||
5 | add_test(${_testname} ${_testname}) | ||
6 | qt5_use_modules(${_testname} Core Test Concurrent) | ||
7 | target_link_libraries(${_testname} sink libhawd sink_test) | ||
8 | endforeach(_testname) | ||
9 | endmacro(auto_tests) | ||
10 | |||
11 | macro(manual_tests) | ||
12 | foreach(_testname ${ARGN}) | ||
13 | add_executable(${_testname} ${_testname}.cpp) | ||
14 | qt5_use_modules(${_testname} Core Test Concurrent) | ||
15 | target_link_libraries(${_testname} sink libhawd sink_test) | ||
16 | endforeach(_testname) | ||
17 | endmacro(manual_tests) | ||