Merge lp:~tiagosh/telephony-service/fix-tests into lp:telephony-service

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: no longer in the source branch.
Merged at revision: 789
Proposed branch: lp:~tiagosh/telephony-service/fix-tests
Merge into: lp:telephony-service
Diff against target: 63 lines (+8/-5)
5 files modified
Ubuntu/Telephony/tests/CMakeLists.txt (+1/-1)
handler/CMakeLists.txt (+5/-1)
handler/tests/HandlerTest.cpp (+1/-1)
handler/tests/dbus-test-wrapper.sh.in (+0/-1)
libtelephonyservice/tests/CMakeLists.txt (+1/-1)
To merge this branch: bzr merge lp:~tiagosh/telephony-service/fix-tests
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+212932@code.launchpad.net

Commit message

Fix telephony-service tests.

Description of the change

Fix telephony-service tests.

--------------------
Are there any related MPs required for this MP to build/function as expected? Please list.
No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/telephony-service) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
N/A

If you changed the packaging (debian), did you subscribe a core-dev to this MP?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes

Did CI run pass? If not, please explain why.
Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

Code looks good!

review: Approve
789. By Tiago Salem Herrmann

Fix telephony-service tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ubuntu/Telephony/tests/CMakeLists.txt'
2--- Ubuntu/Telephony/tests/CMakeLists.txt 2013-08-14 16:18:33 +0000
3+++ Ubuntu/Telephony/tests/CMakeLists.txt 2014-03-28 18:01:30 +0000
4@@ -10,7 +10,7 @@
5 target_link_libraries(${test}
6 telephonyservice-qml
7 )
8- add_test(${test} ${CMAKE_CURRENT_BINARY_DIR}/${test} -xunitxml -o ${CMAKE_BINARY_DIR}/test_${test}.xml)
9+ add_test(${test} ${CMAKE_CURRENT_BINARY_DIR}/${test} -platform offscreen -xunitxml -o ${CMAKE_BINARY_DIR}/test_${test}.xml)
10 endforeach(test)
11 endmacro(generate_tests)
12
13
14=== modified file 'handler/CMakeLists.txt'
15--- handler/CMakeLists.txt 2014-01-07 19:53:45 +0000
16+++ handler/CMakeLists.txt 2014-03-28 18:01:30 +0000
17@@ -31,4 +31,8 @@
18 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.canonical.TelephonyServiceHandler.service DESTINATION share/dbus-1/services)
19 install(FILES TelephonyServiceHandler.client DESTINATION share/telepathy/clients)
20
21-add_subdirectory(tests)
22+if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc*")
23+ message(STATUS "Tests disabled on ppc")
24+else()
25+ add_subdirectory(tests)
26+endif()
27
28=== modified file 'handler/tests/HandlerTest.cpp'
29--- handler/tests/HandlerTest.cpp 2014-03-11 17:02:06 +0000
30+++ handler/tests/HandlerTest.cpp 2014-03-28 18:01:30 +0000
31@@ -43,7 +43,7 @@
32 void HandlerTest::initTestCase()
33 {
34 QSignalSpy spy(TelepathyHelper::instance(), SIGNAL(accountReady()));
35- QTRY_COMPARE(spy.count(), 1);
36+ QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 10000);
37 QTRY_VERIFY(TelepathyHelper::instance()->connected());
38
39 // register the approver
40
41=== modified file 'handler/tests/dbus-test-wrapper.sh.in'
42--- handler/tests/dbus-test-wrapper.sh.in 2014-01-22 12:33:43 +0000
43+++ handler/tests/dbus-test-wrapper.sh.in 2014-03-28 18:01:30 +0000
44@@ -20,7 +20,6 @@
45 sleep 1
46
47 mc-tool add mock/mock account0
48-mc-tool enable mock/mock/account0
49
50 @CMAKE_CURRENT_BINARY_DIR@/../telephony-service-handler &
51
52
53=== modified file 'libtelephonyservice/tests/CMakeLists.txt'
54--- libtelephonyservice/tests/CMakeLists.txt 2014-02-27 22:35:40 +0000
55+++ libtelephonyservice/tests/CMakeLists.txt 2014-03-28 18:01:30 +0000
56@@ -35,7 +35,7 @@
57 target_link_libraries(${test}
58 telephonyservice
59 )
60- add_test(${test} ${CMAKE_CURRENT_BINARY_DIR}/${test} -xunitxml -o ${CMAKE_BINARY_DIR}/test_${test}.xml)
61+ add_test(${test} ${CMAKE_CURRENT_BINARY_DIR}/${test} -platform offscreen -xunitxml -o ${CMAKE_BINARY_DIR}/test_${test}.xml)
62 endforeach(test)
63 endmacro(generate_tests)
64

Subscribers

People subscribed via source and target branches