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

Subscribers

People subscribed via source and target branches