on xenial help sign in
Use dbus-test-runner instead of dbus-launch

Since we actually depend on it in the control file Approved by: Michael Zanetti

commit425e5175a85b03988caf19492c191acf36f3c996 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 5 May 2015, 14:47 (11 years ago) parent2fae90dd7e97b0
1 file changed+10−8
cmake/modules/QmlTest.cmake+10−8
cmake/modules/QmlTest.cmake+10−8
@@ -155,10 +155,11 @@ macro(add_binary_qml_test CLASS_NAME LD_PATH DEPS ENVVAR)
155155 set(testCommand
156156 ${ENVVAR}
157157 LD_LIBRARY_PATH=${LD_PATH}
158− dbus-launch
159− ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec
160− -o ${CMAKE_BINARY_DIR}/test${CLASS_NAME}.xml,xunitxml
161− -o -,txt)
158+ dbus-test-runner
159+ -m 300
160+ -t ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec
161+ -p -o -p ${CMAKE_BINARY_DIR}/test${CLASS_NAME}.xml,xunitxml
162+ -p -o -p -,txt)
162163
163164 add_qmltest_target(test${CLASS_NAME} "${testCommand}" FALSE TRUE)
164165 add_dependencies(test${CLASS_NAME} ${CLASS_NAME}TestExec ${DEPS})
@@ -173,10 +174,11 @@ macro(add_binary_qml_test CLASS_NAME LD_PATH DEPS ENVVAR)
173174 ${ENVVAR}
174175 LD_LIBRARY_PATH=${LD_PATH}
175176 xvfb-run --server-args "-screen 0 1024x768x24" --auto-servernum
176− dbus-launch
177− ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec
178− -o ${CMAKE_BINARY_DIR}/test${CLASS_NAME}.xml,xunitxml
179− -o -,txt)
177+ dbus-test-runner
178+ -m 300
179+ -t ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec
180+ -p -o -p ${CMAKE_BINARY_DIR}/test${CLASS_NAME}.xml,xunitxml
181+ -p -o -p -,txt)
180182
181183 add_qmltest_target(xvfbtest${CLASS_NAME} "${xvfbtestCommand}" FALSE TRUE)
182184 add_dependencies(qmluitests xvfbtest${CLASS_NAME})