Merge lp:~roadmr/checkbox/1361121-legacy-graphics-jobs into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3224
Merged at revision: 3226
Proposed branch: lp:~roadmr/checkbox/1361121-legacy-graphics-jobs
Merge into: lp:checkbox
Diff against target: 270 lines (+254/-1)
2 files modified
providers/plainbox-provider-checkbox/jobs/graphics-legacy.txt.in (+253/-0)
providers/plainbox-provider-checkbox/jobs/local.txt.in (+1/-1)
To merge this branch: bzr merge lp:~roadmr/checkbox/1361121-legacy-graphics-jobs
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+232263@code.launchpad.net

Commit message

    providers:plainbox: Restored legacy graphics tests

    These tests should not name-conflict with the generated per-card ones, and
    are good to have to avoid breaking legacy whitelists.

Restored tests are noted in the bug:

https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1361121/comments/7

Description of the change

    providers:plainbox: Restored legacy graphics tests

    These tests should not name-conflict with the generated per-card ones, and
    are good to have to avoid breaking legacy whitelists.

Restored tests are noted in the bug:

https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1361121/comments/7

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Since they are in a separate file it's okay not to mark them all as deprecated. We'll come up with a way to deprecate them once that is an actual feature of the core.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'providers/plainbox-provider-checkbox/jobs/graphics-legacy.txt.in'
--- providers/plainbox-provider-checkbox/jobs/graphics-legacy.txt.in 1970-01-01 00:00:00 +0000
+++ providers/plainbox-provider-checkbox/jobs/graphics-legacy.txt.in 2014-08-26 16:36:55 +0000
@@ -0,0 +1,253 @@
1plugin: shell
2id: graphics/driver_version
3command: graphics_driver
4estimated_duration: 0.500
5_description: Parses Xorg.0.Log and discovers the running X driver and version
6_summary: Test X driver/version
7
8plugin: manual
9id: graphics/resolution-change
10depends: graphics/xorg-version
11_summary: Test changing resolution
12_description:
13 PURPOSE:
14 This test will verify that the GUI is usable after manually changing resolution
15 STEPS:
16 1. Open the Displays application
17 2. Select a new resolution from the dropdown list
18 3. Click on Apply
19 4. Select the original resolution from the dropdown list
20 5. Click on Apply
21 VERIFICATION:
22 Did the resolution change as expected?
23
24plugin: user-verify
25id: graphics/resolution
26requires:
27 device.category == 'VIDEO'
28flags: deprecated
29command: resolution_test
30estimated_duration: 0.750
31_summary: Test default resolution (for old checkbox)
32_description:
33 PURPOSE:
34 This test will verify the default display resolution
35 STEPS:
36 1. This display is using the following resolution:
37 INFO:
38 $output
39 VERIFICATION:
40 Is this acceptable for your display?
41
42plugin: user-verify
43id: graphics/screen-resolution
44requires:
45 device.category == 'VIDEO'
46 package.name == 'qmlscene'
47command: timeout 5 qmlscene --transparent --fullscreen $PLAINBOX_PROVIDER_DATA/resolution_test.qml
48estimated_duration: 10.0
49_summary: Test default resolution
50_description:
51 PURPOSE:
52 This test will verify the default display resolution
53 STEPS:
54 1. Click on Test to display the screen resolution overlay for 5 seconds.
55 VERIFICATION:
56 Is this acceptable for your display?
57
58plugin: shell
59id: graphics/minimum_resolution
60requires:
61 device.category == 'VIDEO'
62command: resolution_test --horizontal 800 --vertical 600
63estimated_duration: 0.331
64_summary: Test that system meets minimum resolution requirement
65_description:
66 Ensure the current resolution meets or exceeds the recommended minimum
67 resolution (800x600). See here for details:
68 .
69 https://help.ubuntu.com/community/Installation/SystemRequirements
70
71plugin: user-verify
72id: graphics/maximum_resolution
73requires:
74 device.category == 'VIDEO'
75 package.name == 'zenity'
76command: zenity --info --text "Maximum resolution: $(xrandr -q |grep -A 1 "connected\( primary\)* [0-9]" |tail -1 |awk '{print $1}')"
77estimated_duration: 10
78_summary: Test maximum supported resolution
79_description:
80 PURPOSE:
81 This test will verify the display is operating at its maximum supported resolution
82 STEPS:
83 1. Consult the system's specifications and locate the screen's maximum supported resolution.
84 2. Click on Test to display the maximum resolution that can be used by Ubuntu on the current display.
85 VERIFICATION:
86 Is this the display's maximum resolution?
87
88id: graphics/modes
89plugin: shell
90command: graphics_modes_info
91estimated_duration: 0.250
92_description: Collect info on graphics modes (screen resolution and refresh rate)
93_summary: Collect info on graphics modes
94
95id: graphics/color_depth
96plugin: shell
97command: color_depth_info
98estimated_duration: 0.150
99_description: Collect info on color depth and pixel format.
100_summary: Collect info on color depth and pixel format.
101
102id: graphics/fresh_rate
103plugin: shell
104command: fresh_rate_info
105_description: Collect info on fresh rate.
106_summary: Collect info on fresh rate.
107
108id: graphics/graphic_memory
109plugin: shell
110command: graphic_memory_info
111_description: Collect info on graphic memory.
112_summary: Collect info on graphic memory.
113
114plugin: user-verify
115id: graphics/cycle_resolution
116requires: package.name == 'xorg'
117depends: graphics/VESA_drivers_not_in_use
118command: xrandr_cycle --screenshot-dir $PLAINBOX_SESSION_SHARE
119estimated_duration: 250.000
120_summary: Test resolution cycling
121_description:
122 PURPOSE:
123 This test cycles through the detected video modes
124 STEPS:
125 1. Click "Test" to start cycling through the video modes
126 VERIFICATION:
127 Did the screen appear to be working for each mode?
128
129plugin: user-verify
130id: graphics/rotation
131depends: graphics/xorg-version
132command: rotation_test
133estimated_duration: 20.000
134_summary: Test rotation
135_description:
136 PURPOSE:
137 This test will test display rotation
138 STEPS:
139 1. Click "Test" to test display rotation. The display will be rotated every 4 seconds.
140 2. Check if all rotations (normal right inverted left) took place without permanent screen corruption
141 VERIFICATION:
142 Did the display rotation take place without without permanent screen corruption?
143
144plugin: shell
145id: graphics/compiz_check
146requires: package.name == 'nux-tools'
147command: ! /usr/lib/nux/unity_support_test -c -p | ansi_parser | grep ":\(\s\+\)no$"
148estimated_duration: 0.130
149_summary: Test Compiz support
150_description: Check that hardware is able to run compiz
151
152plugin: shell
153id: graphics/unity-support
154requires: package.name == 'nux-tools'
155command: ! /usr/lib/nux/unity_support_test -p | ansi_parser | grep ":\(\s\+\)no"
156estimated_duration: 0.131
157_description: Check that hardware is able to run Unity 3D
158_summary: Test Unity 3D support
159
160plugin: user-verify
161id: graphics/glxgears
162requires: package.name == 'mesa-utils'
163command: glxgears; true
164_description:
165_summary: Test that glxgears works
166 PURPOSE:
167 This test tests the basic 3D capabilities of your video card
168 STEPS:
169 1. Click "Test" to execute an OpenGL demo. Press ESC at any time to close.
170 2. Verify that the animation is not jerky or slow.
171 VERIFICATION:
172 1. Did the 3d animation appear?
173 2. Was the animation free from slowness/jerkiness?
174
175plugin: shell
176id: graphics/3d_window_open_close
177requires: package.name == 'mesa-utils'
178command: window_test -t open-close -i 10
179estimated_duration: 60.525
180_summary: Test 3D window open/close
181_description: Open and close a 3D window multiple times
182
183plugin: shell
184id: graphics/3d_window_suspend_resume
185requires: package.name == 'mesa-utils'
186command: window_test -t suspend-resume -i 10
187estimated_duration: 121.00
188_description: Open, suspend resume and close a 3D window multiple times
189_summary: Test a 3D window with suspend/resume
190
191plugin: shell
192id: graphics/multi_3d_windows_open_close
193requires: package.name == 'mesa-utils'
194command: window_test -t open-close-multi -i 10 -w 4
195estimated_duration: 60.000
196_description: Open and close 4 3D windows multiple times
197_summary: Test Multi 3D window open/close
198
199plugin: shell
200id: graphics/3d_window_move
201requires: package.name == 'mesa-utils'
202command: window_test -t move
203estimated_duration: 50.000
204_description: Move a 3D window around the screen
205_summary: Test 3D window movement
206
207plugin: shell
208id: graphics/screenshot
209requires: package.name == 'fswebcam'
210command: set -o pipefail; camera_test still --device=/dev/external_webcam -f ${PLAINBOX_SESSION_SHARE}/screenshot.jpg -q 2>&1 | ansi_parser
211_summary: Test grabbing a screenshot
212_description:
213 PURPOSE:
214 Take a screengrab of the current screen (logged on Unity desktop)
215 STEPS:
216 1. Take picture using USB webcam
217 VERIFICATION:
218 Review attachment manually later
219
220plugin: attachment
221id: screenshot.jpg
222depends: graphics/screenshot
223command: base64 ${PLAINBOX_SESSION_SHARE}/screenshot.jpg
224_description: Attaches the screenshot captured in graphics/screenshot.
225_summary: Attach results of screenshot test
226
227plugin: shell
228id: graphics/screenshot_fullscreen_video
229requires: package.name == 'fswebcam'
230command:
231 [ -f ${PLAINBOX_PROVIDER_DATA}/video/Ogg_Theora_Video.ogv ] || { echo "Video file not found"; exit 1; }
232 dbus-launch gsettings set org.gnome.totem repeat true
233 totem --fullscreen ${PLAINBOX_PROVIDER_DATA}/video/Ogg_Theora_Video.ogv 2>/dev/null &
234 set -o pipefail
235 sleep 15 && camera_test still --device=/dev/external_webcam -f ${PLAINBOX_SESSION_SHARE}/screenshot_fullscreen_video.jpg -q 2>&1 | ansi_parser
236 sleep 5 && totem --quit 2>/dev/null
237 dbus-launch gsettings set org.gnome.totem repeat false
238_summary: Test FSV screenshot
239_description:
240 PURPOSE:
241 Take a screengrab of the current screen during fullscreen video playback
242 STEPS:
243 1. Start a fullscreen video playback
244 2. Take picture using USB webcam after a few seconds
245 VERIFICATION:
246 Review attachment manually later
247
248plugin: attachment
249id: screenshot_fullscreen_video.jpg
250depends: graphics/screenshot_fullscreen_video
251command: base64 ${PLAINBOX_SESSION_SHARE}/screenshot_fullscreen_video.jpg
252_description: Attaches the screenshot captured in graphics/screenshot_fullscreen_video.
253_summary: Attach results of FSV screenshot test
0254
=== modified file 'providers/plainbox-provider-checkbox/jobs/local.txt.in'
--- providers/plainbox-provider-checkbox/jobs/local.txt.in 2014-05-09 16:53:32 +0000
+++ providers/plainbox-provider-checkbox/jobs/local.txt.in 2014-08-26 16:36:55 +0000
@@ -101,7 +101,7 @@
101_description: Graphics tests101_description: Graphics tests
102command:102command:
103 shopt -s extglob103 shopt -s extglob
104 cat $PLAINBOX_PROVIDER_DATA/../jobs/graphics.txt?(.in)104 cat $PLAINBOX_PROVIDER_DATA/../jobs/graphics.txt?(.in) $PLAINBOX_PROVIDER_DATA/../jobs/graphics-legacy.txt?(.in)
105105
106id: __hibernate__106id: __hibernate__
107plugin: local107plugin: local

Subscribers

People subscribed via source and target branches