Merge lp://staging/~schwuk/checkbox/additional-tests into lp://staging/checkbox

Proposed by David Murphy
Status: Merged
Merged at revision: not available
Proposed branch: lp://staging/~schwuk/checkbox/additional-tests
Merge into: lp://staging/checkbox
Diff against target: 144 lines (+112/-7)
4 files modified
scripts/dead_pixel.py (+34/-0)
tests/audio.txt.in (+16/-0)
tests/monitor.txt.in (+21/-0)
tests/video.txt.in (+41/-7)
To merge this branch: bzr merge lp://staging/~schwuk/checkbox/additional-tests
Reviewer Review Type Date Requested Status
Marc Tardif (community) Approve
Review via email: mp+15654@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
David Murphy (schwuk) wrote :

Additional tests for Checkbox.

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

The dead_pixel.py test was broken when copying over from checkbox-oem. The tabs in the script were intended to be 8 spaces whereas they were apparently substituted by 4 spaces, causing the script to no longer even compile. I have made the necessary changes myself.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'scripts/dead_pixel.py'
2--- scripts/dead_pixel.py 1970-01-01 00:00:00 +0000
3+++ scripts/dead_pixel.py 2009-12-04 15:35:23 +0000
4@@ -0,0 +1,34 @@
5+#!/usr/bin/env python
6+
7+import pygtk
8+pygtk.require('2.0')
9+import gtk
10+
11+class Application:
12+ def __init__(self):
13+ self.colors = iter(["red", "green", "blue", "white", "black"])
14+ self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
15+ self.window.set_decorated(False)
16+ self.window.fullscreen()
17+ self.window.modify_bg(gtk.STATE_NORMAL,
18+ gtk.gdk.color_parse(self.colors.next()))
19+
20+ self.window.connect("key-press-event", self.rotate_bg_color)
21+ self.window.add_events(gtk.gdk.BUTTON_PRESS_MASK)
22+ self.window.connect("button-press-event", self.rotate_bg_color)
23+
24+ self.window.show()
25+
26+ def rotate_bg_color(self, window, event):
27+ try:
28+ self.window.modify_bg(gtk.STATE_NORMAL,
29+ gtk.gdk.color_parse(self.colors.next()))
30+ except StopIteration:
31+ gtk.main_quit()
32+
33+ def main(self):
34+ gtk.main()
35+
36+if __name__ == "__main__":
37+ app = Application()
38+ app.main()
39
40=== modified file 'tests/audio.txt.in'
41--- tests/audio.txt.in 2009-09-11 16:41:43 +0000
42+++ tests/audio.txt.in 2009-12-04 15:35:23 +0000
43@@ -109,3 +109,19 @@
44 After a few seconds, your speech will be played back to you.
45 .
46 Did you hear your speech played back?
47+
48+plugin: manual
49+name: playback_headphones
50+requires:
51+ device.category == 'AUDIO'
52+ package.name == 'python-gst0.10'
53+command: gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink'
54+_description:
55+ Please connect a pair of headphones to your audio device.
56+ .
57+ Click the Test button to play a sound on the automatically detected \
58+ playback device.
59+ .
60+ Do you hear a sound through the headphones?
61+
62+
63
64=== added file 'tests/monitor.txt.in'
65--- tests/monitor.txt.in 1970-01-01 00:00:00 +0000
66+++ tests/monitor.txt.in 2009-12-04 15:35:23 +0000
67@@ -0,0 +1,21 @@
68+plugin: manual
69+name: monitor-powersaving
70+command: xset dpms force off
71+_description:
72+ Monitor power saving verification procedure:
73+ 1.- Select Test to try the power saving capabilities of your monitor
74+ 2.- The monitor should go blank
75+ 3.- Press any key or move the mouse to recover
76+ .
77+ Did the monitor go blank?
78+
79+plugin: manual
80+name: monitor-dead-pixel
81+command: dead_pixel.py
82+_description:
83+ Dead pixel check procedure:
84+ 1.- Select Test to display a single color in full screen mode
85+ 2.- Check that all pixels are the same color
86+ 3.- Press any key and repeat the check for another color (red, green, blue, white and black)
87+ .
88+ Did all the pixels change their color properly?
89
90=== modified file 'tests/video.txt.in'
91--- tests/video.txt.in 2009-11-03 19:07:50 +0000
92+++ tests/video.txt.in 2009-12-04 15:35:23 +0000
93@@ -45,10 +45,44 @@
94 Check that hardware is able to run compiz.
95
96 plugin: manual
97-name: external_monitor
98-_description:
99- Plug video output to an external monitor. Is the image displayed correctly?
100- .
101- Please repeat the test for each kind of video output supported (VGA, DVI, DisplayPort and HDMI).
102- .
103- For HDMI, please also check that sound is played from the monitor speakers.
104+name: video-vga
105+_description:
106+ If your system does not have a VGA port, please skip this test.
107+ .
108+ Connect a display (if not already connected) to the VGA port on your system. Is the image displayed correctly?
109+
110+plugin: manual
111+name: video-dvi
112+_description:
113+ If your system does not have a DVI port, please skip this test.
114+ .
115+ Connect a display (if not already connected) to the DVI port on your system. Is the image displayed correctly?
116+
117+plugin: manual
118+name: video-displayport
119+_description:
120+ If your system does not have DisplayPort, please skip this test.
121+ .
122+ Connect a display (if not already connected) to the DisplayPort on your system. Is the image displayed correctly?
123+
124+plugin: manual
125+name: video-hdmi
126+_description:
127+ If your system does not have a HDMI port, please skip this test.
128+ .
129+ Connect a display (if not already connected) to the HDMI port on your system. Is the image displayed correctly?
130+ .
131+
132+plugin: manual
133+name: video-svideo
134+_description:
135+ If your system does not have a S-VIDEO port, please skip this test.
136+ .
137+ Connect a display (if not already connected) to the S-VIDEO port on your system. Is the image displayed correctly?
138+
139+plugin: manual
140+name: video-rca
141+_description:
142+ If your system does not have a RCA port, please skip this test.
143+ .
144+ Connect a display (if not already connected) to the RCA port on your system. Is the image displayed correctly?

Subscribers

People subscribed via source and target branches