Merge lp:~cr3/checkbox/multitouch into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1723
Proposed branch: lp:~cr3/checkbox/multitouch
Merge into: lp:checkbox
Diff against target: 253 lines (+68/-19)
7 files modified
debian/changelog (+4/-0)
jobs/audio.txt.in (+1/-1)
jobs/graphics.txt.in (+2/-2)
jobs/led.txt.in (+11/-11)
jobs/suspend.txt.in (+2/-2)
jobs/touchpad.txt.in (+26/-3)
jobs/touchscreen.txt.in (+22/-0)
To merge this branch: bzr merge lp:~cr3/checkbox/multitouch
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Brendan Donegan (community) Needs Information
Marc Tardif (community) Needs Resubmitting
Review via email: mp+127062@code.launchpad.net

Commit message

Merged multitouch tests from cr3.

Description of the change

The results from testing a singletouch touchpad and a non-touch touchscreen are:

touchpad/singletouch-automated pass
touchpad/multitouch-automated fail
touchpad/multitouch-manual fail
touchscreen/nontouch-automated pass
touchscreen/multitouch-automated fail
touchscreen/multitouch-manual fail

To try on your system, this is a command that will only run the tests from this merge request:

rm -fr store messages checkbox.xsl checkbox.log plugins.bpickle* sub* ; ./bin/checkbox-qt -W <(cat <<EOF
`head -n 32 ./data/whitelists/default.whitelist`
__touchpad__
touchpad/singletouch-automated
touchpad/multitouch-automated
touchpad/multitouch-manual
__touchscreen__
touchscreen/nontouch-automated
touchscreen/multitouch-automated
touchscreen/multitouch-manual
EOF
)

To post a comment you must log in.
lp:~cr3/checkbox/multitouch updated
1722. By Marc Tardif

Fixed filter_templates arguments for multitouch tests.

Revision history for this message
Marc Tardif (cr3) wrote :

After testing on an all-in-one system with a multitouch screen and a mouse, these were the results:

touchpad/singletouch-automated fail
touchpad/multitouch-automated pass
touchpad/multitouch-manual uninitiated
touchscreen/nontouch-automated fail
touchscreen/multitouch-automated pass
touchscreen/multitouch-manual uninitiated

The problem is that both the touchpad and the touchscreen were being filtered as the same device by this command:

  xinput_resource | filter_templates -w 'class=XITouchClass' -w 'touch_mode=dependent' -b 'name=Virtual core pointer'| grep 'name:'

and this command:

  xinput_resource | filter_templates -w 'class=XITouchClass' -w 'touch_mode=direct' -b 'name=Virtual core pointer'| grep 'name:'

The reason is that the whitelist arguments seem to be or'ed instead of and'ed. So, these commands were changed to:

  xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: dependent'

and this command respectively:

  xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: direct'

Since grep is now used in quiet mode, there's really no reason to blacklist the Virtual core pointer device anymore.

review: Needs Resubmitting
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I think it's a bit strange that the changelog has seperate entries for the two different files, why not just mention both in the one?

review: Needs Information
Revision history for this message
Marc Tardif (cr3) wrote :

You have my blessing to modify the changelog entry as you please as you merge the code. Thanks!

Revision history for this message
Daniel Manrique (roadmr) wrote :

Massaging changelog while merging per the above comments. Thanks!

review: Approve
Revision history for this message
TienFu Chen (ctf) wrote :

I have tested, the submission is as below.
http://dl.dropbox.com/u/2747034/ctf_submission.xml

touchpad/singletouch-automated: FAILED
touchpad/multitouch-automated: PASSED
touchpad/singletouch-manual: uninitiated
touchscreen/nontouch-automated: FAILED
touchscreen/multitouch-automated: PASSED
touchscreen/singletouch-manual: uninitiated

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-09-28 16:29:41 +0000
3+++ debian/changelog 2012-09-28 21:59:23 +0000
4@@ -94,6 +94,10 @@
5 * [FEATURE] tools/lint: Added script to consistently check syntax.
6 * plugins/apport_prompt.py: Removed apport plugin that caused crashes
7 when trying to send bug report (LP #1047857)
8+ * [FEATURE] jobs/touchpad.txt.in: Added singletouch and multitouch for
9+ touchpads.
10+ * [FEATURE] jobs/touchscreen.txt.in: Added nontouch and multitouch for
11+ touchscreens.
12
13 [Sean Feole]
14 * [FEATURE] scripts/battery_test: measures battery capacity before and after
15
16=== modified file 'jobs/audio.txt.in'
17--- jobs/audio.txt.in 2012-09-19 14:35:12 +0000
18+++ jobs/audio.txt.in 2012-09-28 21:59:23 +0000
19@@ -41,7 +41,7 @@
20 1. Plug an external HDMI device with sound (Use second port if you have more than one hdmi interface)
21 2. Click the Test button
22 VERIFICATION:
23- 1. Did you hear the sound from the HDMI device?
24+ Did you hear the sound from the HDMI device?
25
26 plugin: manual
27 name: audio/playback_headphones
28
29=== modified file 'jobs/graphics.txt.in'
30--- jobs/graphics.txt.in 2012-08-29 11:10:51 +0000
31+++ jobs/graphics.txt.in 2012-09-28 21:59:23 +0000
32@@ -180,7 +180,7 @@
33 STEPS:
34 1. Take picture using USB webcam
35 VERIFICATION:
36- 1. Review attachment manually later
37+ Review attachment manually later
38
39 plugin: attachment
40 name: screenshot.jpg
41@@ -204,7 +204,7 @@
42 1. Start a fullscreen video playback
43 2. Take picture using USB webcam after a few seconds
44 VERIFICATION:
45- 1. Review attachment manually later
46+ Review attachment manually later
47
48 plugin: attachment
49 name: screenshot_fullscreen_video.jpg
50
51=== modified file 'jobs/led.txt.in'
52--- jobs/led.txt.in 2012-08-07 13:10:23 +0000
53+++ jobs/led.txt.in 2012-09-28 21:59:23 +0000
54@@ -6,7 +6,7 @@
55 STEPS:
56 1. Power LED should be on while device is switched on
57 VERIFICATION:
58- 1. Does the power LED light as expected?
59+ Does the power LED light as expected?
60
61 plugin: manual
62 name: led/battery-charging
63@@ -17,7 +17,7 @@
64 1. Let system run on battery for a while
65 2. Plug in AC plug
66 VERIFICATION:
67- 1. Did the battery indicator LED turn orange?
68+ Did the battery indicator LED turn orange?
69
70 plugin: manual
71 name: led/battery-charged
72@@ -29,7 +29,7 @@
73 2. Plug in AC
74 3. Let system run on AC
75 VERIFICATION:
76- 1. Does the orange battery LED shut off when system is fully charged?
77+ Does the orange battery LED shut off when system is fully charged?
78
79 plugin: manual
80 name: led/battery-low
81@@ -40,7 +40,7 @@
82 1. Let system run on battery for several hours
83 2. Monitor battery LED carefully
84 VERIFICATION:
85- 1. Does the LED light orange when battery is low?
86+ Does the LED light orange when battery is low?
87
88 plugin: manual
89 name: led/hdd
90@@ -52,7 +52,7 @@
91 1. Select "Test" to write and read a temporary file for a few seconds
92 2. HDD LED should light when writing to/reading from HDD
93 VERIFICATION:
94- 1. Did the HDD LED light?
95+ Did the HDD LED light?
96
97 plugin: manual
98 name: led/numeric-keypad
99@@ -77,7 +77,7 @@
100 1. Press "Block Cap Keys" to activate/deactivate cap keys blocking
101 2. Cap Keys LED should be switched on/off every time the key is pressed
102 VERIFICATION:
103- 1. Did the Cap Keys LED light as expected?
104+ Did the Cap Keys LED light as expected?
105
106 plugin: manual
107 name: led/wlan
108@@ -93,7 +93,7 @@
109 3. Select Test to open Firefox
110 4. WLAN LED should flash while downloading data
111 VERIFICATION:
112- 1. Did the WLAN LED light and flash as expected?
113+ Did the WLAN LED light and flash as expected?
114
115 plugin: manual
116 name: led/wlan-disabled
117@@ -107,7 +107,7 @@
118 3. Re-enable
119 4. Use Network-Manager to disable WLAN
120 VERIFICATION:
121- 1. Did the LED turn off then WLAN is disabled?
122+ Did the LED turn off then WLAN is disabled?
123
124 plugin: manual
125 name: led/bluetooth
126@@ -121,7 +121,7 @@
127 3. Switch bluetooth off from the panel applet
128 4. Switch bluetooth back on
129 VERIFICATION:
130- 1. Did the bluetooth LED turn off and on twice?
131+ Did the bluetooth LED turn off and on twice?
132
133 plugin: manual
134 name: led/camera
135@@ -134,7 +134,7 @@
136 1. Select Test to activate camera
137 2. Camera LED should light for a few seconds
138 VERIFICATION:
139- 1. Did the camera LED light?
140+ Did the camera LED light?
141
142 plugin: manual
143 name: led/touchpad
144@@ -162,5 +162,5 @@
145 3. Switch WLAN and Bluetooth off from the panel applet
146 4. Switch them back on
147 VERIFICATION:
148- 1. Did the WLAN/Bluetooth LED light as expected?
149+ Did the WLAN/Bluetooth LED light as expected?
150
151
152=== modified file 'jobs/suspend.txt.in'
153--- jobs/suspend.txt.in 2012-09-12 16:09:15 +0000
154+++ jobs/suspend.txt.in 2012-09-28 21:59:23 +0000
155@@ -523,7 +523,7 @@
156 STEPS:
157 1. Take picture using USB webcam
158 VERIFICATION:
159- 1. Review attachment manually later
160+ Review attachment manually later
161
162 plugin: attachment
163 name: screenshot_after_suspend.jpg
164@@ -550,7 +550,7 @@
165 3. Launch an HTML5 video playback in firefox
166 4. Suspend/resume
167 VERIFICATION:
168- 1. After a 60s workload, check kern.log for reported GPU errors
169+ After a 60s workload, check kern.log for reported GPU errors
170
171 plugin: shell
172 name: suspend/wifi_resume_time
173
174=== modified file 'jobs/touchpad.txt.in'
175--- jobs/touchpad.txt.in 2012-09-23 18:36:11 +0000
176+++ jobs/touchpad.txt.in 2012-09-28 21:59:23 +0000
177@@ -8,7 +8,7 @@
178 2. Try to move pointer using touchpad
179 3. Pointer should move accordingly
180 VERIFICATION:
181- 1. Did touchpad work as expected?
182+ Did touchpad work as expected?
183
184 plugin: manual
185 name: touchpad/horizontal
186@@ -23,7 +23,7 @@
187 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.
188 3. Verify that you can move the horizontal slider by moving your finger side by side in the lower part of the touchpad
189 VERIFICATION:
190- 1. Did touchpad work as expected?
191+ Did touchpad work as expected?
192
193 plugin: manual
194 name: touchpad/vertical
195@@ -38,4 +38,27 @@
196 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.
197 3. Verify that you can move the vertical slider by moving your finger side by side in the right part of the touchpad
198 VERIFICATION:
199- 1. Did touchpad work as expected?
200+ Did touchpad work as expected?
201+
202+plugin: shell
203+name: touchpad/singletouch-automated
204+command: !(xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: dependent')
205+_description:
206+ Determine whether the touchpad is detected as a singletouch device automatically.
207+
208+plugin: shell
209+name: touchpad/multitouch-automated
210+command: xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: dependent'
211+_description:
212+ Determine whether the touchpad is detected as a multitouch device automatically.
213+
214+plugin: manual
215+name: touchpad/multitouch-manual
216+depends: touchpad/singletouch-automated
217+_description:
218+ PURPOSE:
219+ Touchpad manual detection of multitouch.
220+ STEPS:
221+ 1. Look at the specifications for your system.
222+ VERIFICATION:
223+ Is the touchpad supposed to be multitouch?
224
225=== modified file 'jobs/touchscreen.txt.in'
226--- jobs/touchscreen.txt.in 2012-08-09 09:14:16 +0000
227+++ jobs/touchscreen.txt.in 2012-09-28 21:59:23 +0000
228@@ -30,3 +30,25 @@
229 VERIFICATION:
230 Does the screen zoom in and out?
231
232+plugin: shell
233+name: touchscreen/nontouch-automated
234+command: !(xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: direct')
235+_description:
236+ Determine whether the screen is detected as a non-touch device automatically.
237+
238+plugin: shell
239+name: touchscreen/multitouch-automated
240+command: xinput_resource | filter_templates -w 'class=XITouchClass' | grep -q 'touch_mode: direct'
241+_description:
242+ Determine whether the screen is detected as a multitouch device automatically.
243+
244+plugin: manual
245+name: touchscreen/multitouch-manual
246+depends: touchscreen/nontouch-automated
247+_description:
248+ PURPOSE:
249+ Touchscreen manual detection of multitouch.
250+ STEPS:
251+ 1. Look at the specifications for your system.
252+ VERIFICATION:
253+ Is the screen supposed to be multitouch?

Subscribers

People subscribed via source and target branches