2
category_id: 2013.com.canonical.plainbox::power-management
3
id: power-management/shutdown-boot
4
estimated_duration: 300.0
7
This test will check your system shutdown/booting cycle.
9
1. Shutdown your machine.
11
3. Repeat steps 1 and 2 at least 5 times.
13
Did the system shutdown and rebooted correctly?
16
category_id: 2013.com.canonical.plainbox::power-management
17
id: power-management/fwts_wakealarm
18
environ: PLAINBOX_SESSION_SHARE
19
estimated_duration: 25.0
21
_description: Test ACPI Wakealarm (fwts wakealarm)
23
package.name == 'fwts'
24
command: fwts_test -f aborted -t wakealarm -l $PLAINBOX_SESSION_SHARE/fwts-wakealarm.log
27
category_id: 2013.com.canonical.plainbox::power-management
28
id: power-management/fwts_wakealarm-log-attach
29
depends: power-management/fwts_wakealarm
30
estimated_duration: 2.0
31
_description: Attach log from fwts wakealarm test
33
package.name == 'fwts'
34
command: [ -e ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log ] && cat ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log
36
plugin: user-interact-verify
37
category_id: 2013.com.canonical.plainbox::power-management
38
id: power-management/poweroff
39
estimated_duration: 120.0
40
depends: power-management/fwts_wakealarm
42
environ: PLAINBOX_SESSION_SHARE
44
package.name == 'upstart'
45
package.name == 'fwts'
46
command: pm_test poweroff --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
50
This test will check the system's ability to power-off and boot.
52
1. Select "Test" to begin.
53
2. The machine will shut down.
54
3. Power the machine back on.
55
4. After rebooting, wait for the test prompts to inform you that the test is complete.
56
5. Once the test has completed, restart checkbox and select 'Re-run' when prompted.
58
If the machine successfully shuts down and boots, select 'Yes', otherwise,
62
category_id: 2013.com.canonical.plainbox::power-management
63
id: power-management/poweroff-log-attach
64
estimated_duration: 1.0
67
tar cvz $PLAINBOX_SESSION_SHARE/*poweroff.1.log | base64
69
This will attach any logs from the power-management/poweroff test to the results.
71
plugin: user-interact-verify
72
category_id: 2013.com.canonical.plainbox::power-management
73
id: power-management/reboot
74
estimated_duration: 120.0
76
environ: PLAINBOX_SESSION_SHARE
78
package.name == 'upstart'
79
package.name == 'fwts'
80
command: pm_test reboot --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
84
This test will check the system's ability to reboot cleanly.
86
1. Select "Test" to begin.
87
2. The machine will reboot.
88
3. After rebooting, wait for the test prompts to inform you that the test is complete.
89
4. Once the test has completed, restart checkbox and select Re-Run when prompted.
91
If the machine successfully reboots, select Yes then select Next.
94
category_id: 2013.com.canonical.plainbox::power-management
95
id: power-management/reboot-log-attach
96
estimated_duration: 1.0
99
tar cvz $PLAINBOX_SESSION_SHARE/*reboot.1.log | base64
101
This will attach any logs from the power-management/reboot test to the results.
104
category_id: 2013.com.canonical.plainbox::power-management
105
id: power-management/lid
106
estimated_duration: 120.0
107
requires: dmi.product in ['Notebook','Laptop','Portable']
110
This test will check your lid sensors.
112
1. Close your laptop lid.
114
Does closing your laptop lid cause your system to suspend?
116
plugin: user-interact-verify
117
category_id: 2013.com.canonical.plainbox::power-management
118
id: power-management/lid_close
119
estimated_duration: 60.0
120
requires: device.product == 'Lid Switch'
122
for i in `seq 20`; do
123
state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
124
[ "$state" = "closed" ] && exit 0 || sleep 0.5
129
This test will check your lid sensors
132
2. Close and open the lid.
134
Did the screen turn off while the lid was closed?
136
plugin: user-interact-verify
137
category_id: 2013.com.canonical.plainbox::power-management
138
id: power-management/lid_open
139
estimated_duration: 60.0
140
requires: device.product == 'Lid Switch'
142
for i in `seq 20`; do
143
state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
144
[ "$state" = "open" ] && exit 0 || sleep 0.5
149
This test will check your lid sensors.
153
3. Wait 5 seconds with the lid closed.
156
Did the system resume when the lid was opened?
159
category_id: 2013.com.canonical.plainbox::power-management
160
id: power-management/rtc
162
rtc.state == 'supported'
163
package.name == 'util-linux'
164
cpuinfo.other != 'emulated by qemu'
167
estimated_duration: 0.02
168
_summary: Test that RTC functions properly (if present)
170
Verify that the Real-time clock (RTC) device functions properly, if present.
173
category_id: 2013.com.canonical.plainbox::power-management
174
id: power-management/tickless_idle
175
estimated_duration: 1.0
176
requires: cpuinfo.platform in ('i386', 'x86_64', 'ppc64el', 'pSeries')
177
_description: Check to see if CONFIG_NO_HZ is set in the kernel (this is just a simple regression check)
179
zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1 || ( echo "WARNING: Tickless Idle is NOT set" >&2 && exit 1 )
182
category_id: 2013.com.canonical.plainbox::power-management
183
id: power-management/unplug_ac
184
estimated_duration: 30.0
187
This test will ensure that the AC is unplugged for the battery drain tests to run.
189
1. Unplug laptop from AC.
191
Was the laptop unplugged from AC?
194
category_id: 2013.com.canonical.plainbox::power-management
195
id: power-management/battery_drain_idle
196
estimated_duration: 90.0
197
requires: package.name == 'upower'
198
depends: power-management/unplug_ac
199
_description: Checks the battery drain during idle. Reports time and capacity until empty.
201
battery_test -t 90 --idle
204
category_id: 2013.com.canonical.plainbox::power-management
205
id: power-management/battery_drain_movie
206
estimated_duration: 90.0
208
package.name == 'upower'
209
depends: power-management/unplug_ac
210
_description: Checks the battery drain while watching a movie. Reports time and capacity until empty. Requires MOVIE_VAR to be set.
212
battery_test -t 90 --movie $MOVIE_VAR
215
category_id: 2013.com.canonical.plainbox::power-management
216
id: power-management/battery_drain_sleep
217
estimated_duration: 140.0
220
package.name == 'upower'
221
package.name == 'fwts'
222
depends: power-management/unplug_ac
223
_description: Checks the battery drain during suspend. Reports time and capacity until empty.
225
battery_test -t 120 --sleep
228
category_id: 2013.com.canonical.plainbox::power-management
229
id: power-management/plug_ac
230
estimated_duration: 30.0
231
depends: power-management/battery_drain_idle power-management/battery_drain_movie power-management/battery_drain_sleep
234
This test will ensure that the AC is plugged back in after the battery tests.
236
1. Plug laptop into AC.
238
Was the laptop plugged into AC?
240
plugin: user-interact-verify
241
category_id: 2013.com.canonical.plainbox::power-management
242
id: power-management/reboot_manual
243
estimated_duration: 120.0
245
command: shutdown -r now
248
This test will verify that your system can successfully reboot.
250
1. Select 'Test' to initiate a system reboot.
251
2. When the grub boot menu is displayed, boot into Ubuntu (Or allow the
252
system to automatically boot on its own).
253
3. Once the system has restarted, log in and restart checkbox-certification-server.
254
4. Select 'Re-Run' to return to this test.
255
5. Select 'Yes' to indicate the test has passed if the system rebooted
256
successfully, otherwise, select 'No' to indicate there was a problem.
258
Did the system reboot correctly?
260
plugin: user-interact-verify
261
category_id: 2013.com.canonical.plainbox::power-management
262
id: power-management/shutdown_manual
263
estimated_duration: 120.0
265
command: shutdown -h now
268
This test will check your system shutdown/booting cycle
270
1. Select 'Test' to initiate a system shutdown.
271
2. Power the system back on.
272
3. From the grub menu, boot into the Xen Hypervisor.
273
4. When the system has restarted, log in and restart checkbox-certification-server.
274
5. Select 'Re-Run' to return to this test.
275
6. Select 'Yes' to indicate the test has passed if the machine shut down
276
successfully otherwise, Select 'No' to indicate there was a problem.
278
Did the system shutdown and boot correctly?