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