~roadmr/ubuntu/precise/checkbox/0.13.5

« back to all changes in this revision

Viewing changes to build/share/checkbox/jobs/sleep.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-12-15 13:05:20 UTC
  • Revision ID: james.westby@ubuntu.com-20101215130520-2h8velbip6ioancs
Tags: 0.10.3ubuntu1
Hack to work around internals of ConfigParser in python2.7. LP: #689140.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
plugin: shell
 
2
name: network_before_suspend
 
3
depends: network_test
 
4
description: Test the network before suspending.
 
5
command: network_check -a
 
6
 
 
7
plugin: shell
 
8
name: resolution_before_suspend
 
9
description: Record the current resolution before suspending.
 
10
command: xrandr -q |grep '*'| awk '{print $1}' > $CHECKBOX_DATA/resolution_before_suspend.txt
 
11
 
 
12
plugin: shell
 
13
name: audio_before_suspend
 
14
description: Test the audio before suspending.
 
15
command: amixer > $CHECKBOX_DATA/audio_before_suspend.txt
 
16
 
 
17
plugin: manual
 
18
name: wireless_before_suspend
 
19
command: internet_test
 
20
description:
 
21
 Wireless network connection procedure:
 
22
 1.- Click on the Network Manager applet
 
23
 2.- Click on Disconnect under 'Wired Networks'
 
24
 3.- Select a network below the 'Wireless networks' section
 
25
 4.- Notify OSD should confirm that the connection has been established
 
26
 5.- Select Test to verify connection and throughput
 
27
 Output:
 
28
 .
 
29
 $output
 
30
 .
 
31
 Is this correct?
 
32
 
 
33
plugin: manual
 
34
name: bluetooth_detect_before_suspend
 
35
requires: package.name == 'bluez'
 
36
command: hcitool dev | tail -n+2 | awk '{print $2}'
 
37
description:
 
38
 The address of your Bluetooth device is:
 
39
 $output
 
40
 .
 
41
 Is this correct?
 
42
 
 
43
plugin: manual
 
44
name: bluetooth_mouse_before_suspend
 
45
depends: bluetooth_detect_before_suspend
 
46
description:
 
47
 Verify a bluetooth peripheral.  An example verification procedure for a bluetooth mouse is given.
 
48
 .
 
49
 Bluetooth mouse procedure:
 
50
 1.- Enable the bluetooth mouse
 
51
 2.- Click on the bluetooth icon in the menu bar
 
52
 3.- Select 'Setup new device'
 
53
 4.- Look for the device in the list and select it
 
54
 5.- Move the mouse around the screen
 
55
 6.- Perform some single/double/right click operations
 
56
 .
 
57
 Did all the steps work?
 
58
 
 
59
plugin: manual
 
60
name: sleep_state_test
 
61
depends: rtc network_before_suspend resolution_before_suspend wireless_before_suspend bluetooth_detect_before_suspend bluetooth_mouse_before_suspend
 
62
requires: package.name == 'pm-utils'
 
63
description:
 
64
 Power management Suspend and Resume test
 
65
 .
 
66
 Click test and your system will suspend for about 30 - 60 seconds. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually.
 
67
user: root
 
68
command: sleep_test -d
 
69
 
 
70
plugin: shell
 
71
name: network_after_suspend
 
72
depends: sleep_state_test network_before_suspend
 
73
description: Test the network after resuming.
 
74
command: internet_test
 
75
 
 
76
plugin: shell
 
77
name: resolution_after_suspend
 
78
depends: sleep_state_test resolution_before_suspend
 
79
description: Test to see that we have the same resolution after resuming as before.
 
80
command: xrandr -q |grep '*'| awk '{print $1}' | diff $CHECKBOX_DATA/resolution_before_suspend.txt -
 
81
 
 
82
plugin: shell
 
83
name: audio_after_suspend
 
84
depends: sleep_state_test audio_before_suspend
 
85
description: Test the audio after resuming.
 
86
command: amixer | diff $CHECKBOX_DATA/audio_before_suspend.txt -
 
87
 
 
88
plugin: manual
 
89
name: wireless_after_suspend
 
90
depends: sleep_state_test wireless_before_suspend
 
91
command: internet_test
 
92
description:
 
93
 Wireless network connection procedure:
 
94
 1.- Click on the Network Manager applet
 
95
 2.- If a wired connection is established, click its Disconnect option
 
96
 3.- Select a network below the 'Wireless networks' section
 
97
 4.- Notify OSD should confirm that the connection has been established
 
98
 5.- Select Test to verify connection and throughput
 
99
 Output:
 
100
 .
 
101
 $output
 
102
 .
 
103
 Is this correct?
 
104
 
 
105
plugin: manual
 
106
name: bluetooth_detect_after_suspend
 
107
depends: sleep_state_test bluetooth_detect_before_suspend
 
108
requires: package.name == 'bluez'
 
109
command: hcitool dev | tail -n+2 | awk '{print $2}'
 
110
description:
 
111
 The address of your Bluetooth device is:
 
112
 $output
 
113
 .
 
114
 Is this correct?
 
115
 
 
116
plugin: manual
 
117
name: bluetooth_mouse_after_suspend
 
118
depends: sleep_state_test bluetooth_detect_after_suspend
 
119
description:
 
120
 Verify a bluetooth peripheral.  An example verification procedure for a bluetooth mouse is given.
 
121
 .
 
122
 Bluetooth mouse procedure:
 
123
 1.- Enable the bluetooth mouse
 
124
 2.- Click on the bluetooth icon in the menu bar
 
125
 3.- Select 'Setup new device'
 
126
 4.- Look for the device in the list and select it
 
127
 5.- Move the mouse around the screen
 
128
 6.- Perform some single/double/right click operations
 
129
 .
 
130
 Did all the steps work?
 
131
 
 
132
plugin: manual
 
133
name: cycle_resolutions_after_suspend
 
134
depends: sleep_state_test xrandr_cycle
 
135
description:
 
136
 This test will check to make sure that supported video modes work after a suspend and resume.  Click Test to Begin.
 
137
command: xrandr_cycle
 
138
 
 
139
plugin: manual
 
140
name: record_playback_after_suspend
 
141
depends: sleep_state_test
 
142
requires:
 
143
 device.category == 'AUDIO'
 
144
 package.name == 'alsa-base'
 
145
command: alsa_record_playback
 
146
description:
 
147
 This will check to make sure that your audio device works properly after a suspend and resume.  You can use either internal or external microphone and speakers.
 
148
 .
 
149
 To execute this test, make sure your speaker and microphone are NOT muted and the volume is set sufficiently loud to record and play audio. Click the Test button and then speak into your microphone. After a few seconds, your speech will be played back to you.
 
150
 .
 
151
 Did you hear your speech played back?
 
152
 
 
153
plugin: manual
 
154
name: suspend_30_cycles
 
155
depends: rtc
 
156
requires: package.name == 'pm-utils'
 
157
user: root
 
158
command: sleep_test -i 30 -s mem --debug
 
159
description:
 
160
 Enter and resume from suspend state for 30 iterations. Please note that this is a lengthy test. Click Test to begin.
 
161
 .
 
162
 Did the system successfully suspend and resume for 30 iterations?
 
163
 
 
164
plugin: manual
 
165
name: hibernate_once
 
166
depends: rtc
 
167
command: sleep_test -s disk -w 120 --debug
 
168
description:
 
169
 This will check to make sure your system can successfully hibernate (if supported).
 
170
 .
 
171
 Click the Test button to begin. The system will hibernate and should wake itself within 5 minutes.  If your system does not wake itself after 5 minutes, please press the power button to wake the system manually.
 
172
 .
 
173
 Did the system successfully hibernate and did it work properly after waking up?
 
174
 
 
175
plugin: manual
 
176
name: hibernate_30_cycles
 
177
depends: rtc
 
178
requires: package.name == 'pm-utils'
 
179
user: root
 
180
command: sleep_test -i 30 -s disk -w 120 --debug
 
181
description:
 
182
 Enter and resume from hibernate for 30 iterations. Please note that this is a very lengthy test. Also, if your system does not wake itself after 2 minutes, you will need to press the power button to wake the system up.
 
183
 .
 
184
 Also, you will need to ensure your system has no power-on or HDD passwords set, and that grub is set to boot Ubuntu by default if you have a multi-boot set-up.
 
185
 .
 
186
 Did the system successfully hibernate and wake 30 times?