~ubuntu-branches/ubuntu/precise/checkbox/precise-201204040741

« back to all changes in this revision

Viewing changes to jobs/power-management.txt.in

  • Committer: Package Import Robot
  • Author(s): Ara Pulido, Ara Pulido, Brendan Donegan, Daniel Manrique, Jeff Lane, Marc Tardif
  • Date: 2011-09-01 12:23:07 UTC
  • Revision ID: package-import@ubuntu.com-20110901122307-ryc7ctlg9oa6b1wr
Tags: 0.12.5
New upstream release (LP: #838745):

[Ara Pulido]
* Created a "suspend" suite and renamed relevant tests.

[Brendan Donegan]
* Removed redundant tests in power-management suite.
* Fixed dependencies in power-management suite.

[Daniel Manrique]
* Changed name of apt-get test to reflect the suite it's in.
* Fixed typos in job definitions that caused them to not be run.
* Added missing description to info/hdparm test (LP: #832351)
* Quote command to obtain bluetooth address, to avoid hanging if 
  a device is not present (LP: #836756).
* Added BLUETOOTH category to udev parser.
* Removed some tests from default whitelist.
* Fixed dependencies for keys/sleep.

[Jeff Lane]
* Added new USB storage transfer test
* Re-worked and added automated audio test

[Marc Tardif]
* Added WIRELESS category to udev parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 Did the screen turn back on when the lid was opened?
45
45
 
46
46
plugin: shell
47
 
name: power-management/network_before_suspend
48
 
depends: network_test
49
 
_description: Test the network before suspending.
50
 
command: network_check -a
51
 
 
52
 
plugin: shell
53
 
name: power-management/resolution_before_suspend
54
 
_description: Record the current resolution before suspending.
55
 
command: xrandr -q |grep '*'| awk '{print $1}' > $CHECKBOX_DATA/resolution_before_suspend.txt
56
 
 
57
 
plugin: shell
58
 
name: power-management/audio_before_suspend
59
 
requires:
60
 
 device.category == 'AUDIO'
61
 
 package.name == 'alsa-base'
62
 
_description: Test the audio before suspending.
63
 
command: amixer > $CHECKBOX_DATA/audio_before_suspend.txt
64
 
 
65
 
plugin: shell
66
 
name: power-management/cpu_before_suspend
67
 
requires:
68
 
 package.name == 'linux'
69
 
_description: Check all the CPUs are online before suspending
70
 
command: cpuinfo_resource > $CHECKBOX_DATA/cpuinfo_before_suspend
71
 
 
72
 
plugin: shell
73
 
name: power-management/memory_before_suspend
74
 
requires:
75
 
 package.name == 'linux'
76
 
_description:
77
 
 Dumps memory info to a file for comparison after suspend test has been run
78
 
command: meminfo_resource > $CHECKBOX_DATA/meminfo_before_suspend
79
 
 
80
 
plugin: shell
81
 
name: power-management/wireless_before_suspend
82
 
depends: networking/wireless_connection
83
 
command: nmcli -t -f DEVICES con status >> $CHECKBOX_DATA/iface && connect_wireless && internet_test --interface=`nmcli dev list | grep -B 1 wireless | grep GENERAL.DEVICE | awk '{print $2}'` && reconnect `cat $CHECKBOX_DATA/iface`
84
 
_description:
85
 
 This test disconnects all connections and then connects to the wireless
86
 
 interface. It then checks the connection to confirm it's working as expected.
87
 
 
88
 
plugin: shell
89
 
name: power-management/bluetooth_detect_before_suspend
90
 
requires: package.name == 'bluez'
91
 
command: hcitool dev | tail -n+2 | awk '{print $2}' > $CHECKBOX_DATA/bluetooth_address
92
 
_description:
93
 
 This test just grabs the hardware address of the bluetooth controller
94
 
 
95
 
plugin: shell
96
 
name: power-management/bluetooth_obex_before_suspend
97
 
requires: package.name == 'bluez' and package.name == 'obexd-client'
98
 
command: obex_send $BTDEVADDR $CHECKBOX_SHARE/data/images/JPEG_Color_Image_Ubuntu.jpg
99
 
_description:
100
 
 This test sends an image to the device specified by the BTDEVADDR environment variable.
101
 
 
102
 
plugin: manual
103
 
name: power-management/bluetooth_obex_before_suspend_manual
104
 
requires: package.name == 'bluez' and package.name == 'obexd-client'
105
 
command: obex_send `bluetooth_scan` $CHECKBOX_SHARE/data/images/JPEG_Color_Image_Ubuntu.jpg
106
 
_description:
107
 
 This test will send the image 'JPEG_Color_Image_Ubuntu.jpg' to a specified device.
108
 
 .
109
 
 Select Test and you will be prompted to enter the Bluetooth device name of a device that can accept file transfers. It may take a few moments after entering the name for the file to begin sending. Accept any prompts that appear on both devices.
110
 
 
111
 
plugin: shell
112
47
name: power-management/rtc
113
48
requires: package.name == 'linux'
114
49
command:
116
51
_description:
117
52
 Make sure that the RTC (Real-Time Clock) device exists.
118
53
 
119
 
plugin: manual
120
 
name: power-management/suspend_advanced
121
 
depends: power-management/rtc power-management/network_before_suspend power-management/resolution_before_suspend power-management/wireless_before_suspend power-management/bluetooth_detect_before_suspend power-management/bluetooth_mouse_before_suspend power-management/cpu_before_suspend power-management/memory_before_suspend
122
 
requires: package.name == 'pm-utils'
123
 
_description:
124
 
 Power management Suspend and Resume test
125
 
 .
126
 
 Select 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. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed.
127
 
user: root
128
 
command: sleep_test -d
129
 
 
130
 
plugin: shell
131
 
name: power-management/network_after_suspend
132
 
depends: power-management/suspend_advanced power-management/network_before_suspend
133
 
_description: Test the network after resuming.
134
 
command: internet_test
135
 
 
136
 
plugin: shell
137
 
name: power-management/resolution_after_suspend
138
 
depends: power-management/suspend_advanced power-management/resolution_before_suspend
139
 
_description: Test to see that we have the same resolution after resuming as before.
140
 
command: xrandr -q |grep '*'| awk '{print $1}' | diff $CHECKBOX_DATA/resolution_before_suspend.txt -
141
 
 
142
 
plugin: shell
143
 
name: power-management/audio_after_suspend
144
 
requires:
145
 
 device.category == 'AUDIO'
146
 
 package.name == 'alsa-base'
147
 
depends: power-management/suspend_advanced power-management/audio_before_suspend
148
 
_description: Test the audio after resuming.
149
 
command: amixer | diff $CHECKBOX_DATA/audio_before_suspend.txt -
150
 
 
151
 
plugin: shell
152
 
name: power-management/cpu_after_suspend
153
 
requires:
154
 
 package.name == 'linux'
155
 
depends: power-management/suspend_advanced power-management/cpu_before_suspend
156
 
_description: Check all CPUs are online after resuming.
157
 
command: cpuinfo_resource | diff $CHECKBOX_DATA/cpuinfo_before_suspend -
158
 
 
159
 
plugin: shell
160
 
name: power-management/memory_after_suspend
161
 
requires:
162
 
 package.name == 'linux'
163
 
depends: power-management/suspend_advanced power-management/memory_before_suspend
164
 
_description:
165
 
 Check that all memory is available after resuming from suspend.
166
 
command: meminfo_resource | diff $CHECKBOX_DATA/meminfo_before_suspend -
167
 
 
168
 
plugin: manual
169
 
name: power-management/display_after_suspend
170
 
requires:
171
 
 package.name == 'linux'
172
 
depends: power-management/suspend_advanced
173
 
_description:
174
 
 Does the display work normally after resuming from suspend?
175
 
 
176
 
plugin: shell
177
 
name: power-management/wireless_after_suspend
178
 
depends: power-management/suspend_advanced power-management/wireless_before_suspend
179
 
command: nmcli -t -f DEVICES con status >> $CHECKBOX_DATA/iface && connect_wireless && internet_test --interface=`nmcli dev list | grep -B 1 wireless | grep GENERAL.DEVICE | awk '{print $2}'` && reconnect `cat $CHECKBOX_DATA/iface`
180
 
_description:
181
 
 This test checks that the wireless interface is working after suspending the system. It
182
 
 disconnects all interfaces and then connects to the wireless interface and checks that the
183
 
 connection is working as expected.
184
 
 
185
 
plugin: shell
186
 
name: power-management/bluetooth_detect_after_suspend
187
 
depends: power-management/suspend_advanced power-management/bluetooth_detect_before_suspend
188
 
requires: package.name == 'bluez'
189
 
command: grep -q `hcitool dev | tail -n+2 | awk '{print $2}'` $CHECKBOX_DATA/bluetooth_address 
190
 
_description:
191
 
 This test grabs the hardware address of the bluetooth adapter after suspend and compares it to the address grabbed before suspend.
192
 
 
193
 
plugin: shell
194
 
name: power-management/bluetooth_obex_after_suspend
195
 
depends: power-management/suspend_advanced power-management/bluetooth_obex_before_suspend
196
 
requires: package.name == 'bluez' and package.name == 'obexd-client'
197
 
command: obex_send $BTDEVADDR $CHECKBOX_SHARE/data/images/JPEG_Color_Image_Ubuntu.jpg
198
 
_description:
199
 
 This test sends an image to the device specified by the BTDEVADDR environment variable.
200
 
 
201
 
plugin: manual
202
 
name: power-management/bluetooth_obex_after_suspend_manual
203
 
depends: power-management/suspend_advanced power-management/bluetooth_obex_before_suspend_manual
204
 
requires: package.name == 'bluez' and package.name == 'obexd-client'
205
 
command: obex_send `bluetooth_scan` $CHECKBOX_SHARE/data/images/JPEG_Color_Image_Ubuntu.jpg
206
 
_description:
207
 
 This test will send the image 'JPEG_Color_Image_Ubuntu.jpg' to a specified device.
208
 
  .
209
 
  Select Test and you will be prompted to enter the Bluetooth device name of a device that can accept file transfers. It may take a few moments after entering the name for the file to begin sending. Accept any prompts that appear on both devices.
210
 
 
211
 
plugin: manual
212
 
name: power-management/cycle_resolutions_after_suspend
213
 
requires: package.name == 'xorg'
214
 
depends: power-management/suspend_advanced graphics/xrandr_cycle
215
 
_description:
216
 
 This test will check to make sure that supported video modes work after a suspend and resume.  Select Test to begin.
217
 
command: xrandr_cycle --keyword=after_suspend
218
 
 
219
 
plugin: shell
220
 
name: power-management/cycle_resolutions_after_suspend_auto
221
 
requires: package.name == 'xorg'
222
 
depends: power-management/suspend_advanced graphics/xrandr_cycle
223
 
_description:
224
 
 This test will check to make sure supported video modes work after a suspend and resume.
225
 
 This is done automatically by taking screenshots and uploading them as an attachment.
226
 
command: xrandr_cycle --keyword=after_suspend
227
 
 
228
 
plugin: attachment
229
 
name: power-management/xrandr_screens_after_suspend.tar.gz
230
 
depends: power-management/cycle_resolutions_after_suspend_auto
231
 
command: [ -e $CHECKBOX_DATA/xrandr_screens_after_suspend.tgz ] && cat $CHECKBOX_DATA/xrandr_screens_after_suspend.tgz 
232
 
 
233
 
plugin: manual
234
 
name: power-management/usb_storage_after_suspend
235
 
depends: power-management/suspend_advanced
236
 
command: usb_test -t
237
 
_description:
238
 
 This will test that USB functionality is restored after a suspend and resume cycle.
239
 
 1. Plug in at least one USB storage device if one is not already connected.
240
 
 2. Click Test to begin.
241
 
 .
242
 
 If the test is successful, you'll notice that Yes is now selected. Otherwise, No shoud be selected.
243
 
 
244
 
plugin: manual
245
 
name: power-management/record_playback_after_suspend
246
 
depends: power-management/suspend_advanced
247
 
requires:
248
 
 device.category == 'AUDIO'
249
 
 package.name == 'alsa-base'
250
 
command: alsa_record_playback
251
 
_description:
252
 
 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.
253
 
 .
254
 
 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. Select Test and then speak into your microphone. After a few seconds, your speech will be played back to you.
255
 
 .
256
 
 Did you hear your speech played back?
257
 
 
258
 
plugin: manual
259
 
name: power-management/hibernate_advanced
260
 
depends: power-management/rtc
261
 
requires: package.name == 'pm-utils'
262
 
user: root
263
 
command: sleep_test -s disk -w 120 --debug
264
 
_description:
265
 
 This will check to make sure your system can successfully hibernate (if supported).
266
 
 .
267
 
 Select Test 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. If the system fails to resume from hibernate, please restart System Testing and mark this test as Failed.
268
 
 .
269
 
 Did the system successfully hibernate and did it work properly after waking up?
270
 
 
271
54
plugin: shell
272
55
name: power-management/fwts_wakealarm
273
56
_description: Run Colin Kings FWTS wakealarm test
283
66
command:
284
67
 zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1
285
68
 
286
 
plugin: shell
287
 
name: power-management/suspend_advanced_auto
288
 
depends: power-management/rtc 
289
 
requires: package.name == 'pm-utils'
290
 
_description:
291
 
 Automatic power management Suspend and Resume test
292
 
 .
293
 
 Select 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. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed.
294
 
user: root
295
 
command: sleep_test -d
296
 
 
297
 
plugin: shell 
298
 
name: power-management/wake_on_lan
299
 
depends: power-management/rtc power-management/suspend_advanced 
300
 
requires: package.name == 'pm-utils' and package.name == 'util-linux'
301
 
_description:
302
 
 This automatically tests Wake-on-LAN capability with the aid of a suitably configured server. During this process the system will suspend, then automatically wake up after no more than 5 minutes.
303
 
user: root
304
 
command: wake_on_lan_test ${WAKE_ON_LAN_URL} --debug
305