summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2017-09-20 05:04:18 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2017-09-20 05:04:18 +0200
commitb41ebfb6d1f381d33962802d922c818c356d4bce (patch)
tree980239e6a41599737f72a0c83794f41c78d5bca9 /tests
parenta1c7b8b8e4e6e175febf34dc543ee1328e48f8db (diff)
tests/CMakeLists.txt: ensure we build dbus-test binaries before running them
(bzr r4253.1.10)
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index aae1e8c96..7cbb1b5c6 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -310,7 +310,8 @@ if (GMOCK_LIB AND
./test-gtest-service --task-name test-service
--task=./${test_binary} --task-name=${test_binary}
--wait-for=com.canonical.Unity.Test
- --parameter=--gtest_output=xml:./${test_binary}.xml)
+ --parameter=--gtest_output=xml:./${test_binary}.xml
+ DEPENDS ${test_binary})
set (${VAR_PREFIX}_TARGETS ${${VAR_PREFIX}_TARGETS} run-${test_binary})
add_gtest (${basename} ${VAR_PREFIX} "${${VAR_PREFIX}_LIBS}" ${ARGN})