~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-checkbox/jobs/power-management.txt.in

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-17 13:54:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2130.
  • Revision ID: zygmunt.krynicki@canonical.com-20130517135425-cxcenxx5t0qrtbxd
checkbox-ng: add CheckBoxNG sub-project

CheckBoxNG (or lowercase as checkbox-ng, pypi:checkbox-ng) is a clean
implementation of CheckBox on top of PlainBox. It provides a new
executable, 'checkbox' that has some of the same commands that were
previously implemented in the plainbox package.

In particular CheckBoxNG comes with the 'checkbox sru' command
(the same one as in plainbox). Later on this sub-command will be removed
from plainbox.

CheckBoxNG depends on plainbox >= 0.3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
plugin: manual
2
 
category_id: 2013.com.canonical.plainbox::power-management
3
 
id: power-management/shutdown-boot
4
 
estimated_duration: 300.0
5
 
_description:
6
 
 PURPOSE:
7
 
     This test will check your system shutdown/booting cycle.
8
 
 STEPS:
9
 
     1. Shutdown your machine.
10
 
     2. Boot your machine.
11
 
     3. Repeat steps 1 and 2 at least 5 times.
12
 
 VERIFICATION:
13
 
     Did the system shutdown and rebooted correctly?
14
 
 
15
 
plugin: shell
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
20
 
user: root
21
 
_description: Test ACPI Wakealarm (fwts wakealarm)
22
 
requires:
23
 
 package.name == 'fwts'
24
 
command: fwts_test -f aborted -t wakealarm -l $PLAINBOX_SESSION_SHARE/fwts-wakealarm.log
25
 
 
26
 
plugin: attachment
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
32
 
requires:
33
 
 package.name == 'fwts'
34
 
command: [ -e ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log ] && cat ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log
35
 
 
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
41
 
user: root
42
 
environ: PLAINBOX_SESSION_SHARE
43
 
requires:
44
 
 package.name == 'upstart'
45
 
 package.name == 'fwts'
46
 
command: pm_test poweroff --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
47
 
flags: noreturn
48
 
_description:
49
 
 PURPOSE:
50
 
  This test will check the system's ability to power-off and boot.
51
 
 STEPS:
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.
57
 
 VERIFICATION:
58
 
  If the machine successfully shuts down and boots, select 'Yes', otherwise,
59
 
  select 'No'.
60
 
 
61
 
plugin: attachment
62
 
category_id: 2013.com.canonical.plainbox::power-management
63
 
id: power-management/poweroff-log-attach
64
 
estimated_duration: 1.0
65
 
command:
66
 
 set -o pipefail
67
 
 tar cvz $PLAINBOX_SESSION_SHARE/*poweroff.1.log | base64
68
 
_description:
69
 
 This will attach any logs from the power-management/poweroff test to the results.
70
 
 
71
 
plugin: user-interact-verify
72
 
category_id: 2013.com.canonical.plainbox::power-management
73
 
id: power-management/reboot
74
 
estimated_duration: 120.0
75
 
user: root
76
 
environ: PLAINBOX_SESSION_SHARE
77
 
requires:
78
 
 package.name == 'upstart'
79
 
 package.name == 'fwts'
80
 
command: pm_test reboot --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
81
 
flags: noreturn
82
 
_description:
83
 
 PURPOSE:
84
 
  This test will check the system's ability to reboot cleanly.
85
 
 STEPS:
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.
90
 
 VERIFICATION:
91
 
  If the machine successfully reboots, select Yes then select Next.
92
 
 
93
 
plugin: attachment
94
 
category_id: 2013.com.canonical.plainbox::power-management
95
 
id: power-management/reboot-log-attach
96
 
estimated_duration: 1.0
97
 
command:
98
 
 set -o pipefail
99
 
 tar cvz $PLAINBOX_SESSION_SHARE/*reboot.1.log | base64
100
 
_description:
101
 
 This will attach any logs from the power-management/reboot test to the results.
102
 
 
103
 
plugin: manual
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']
108
 
_description:
109
 
 PURPOSE:
110
 
     This test will check your lid sensors.
111
 
 STEPS:
112
 
     1. Close your laptop lid.
113
 
 VERIFICATION:
114
 
    Does closing your laptop lid cause your system to suspend?
115
 
 
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'
121
 
command:
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
125
 
 done
126
 
 exit 1
127
 
_description:
128
 
 PURPOSE:
129
 
     This test will check your lid sensors
130
 
 STEPS:
131
 
     1. Click "Test".
132
 
     2. Close and open the lid.
133
 
 VERIFICATION:
134
 
     Did the screen turn off while the lid was closed?
135
 
 
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'
141
 
command:
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
145
 
 done
146
 
 exit 1
147
 
_description:
148
 
 PURPOSE:
149
 
     This test will check your lid sensors.
150
 
 STEPS:
151
 
     1. Click "Test".
152
 
     2. Close the lid.
153
 
     3. Wait 5 seconds with the lid closed.
154
 
     4. Open the lid.
155
 
 VERIFICATION:
156
 
     Did the system resume when the lid was opened?
157
 
 
158
 
plugin: shell
159
 
category_id: 2013.com.canonical.plainbox::power-management
160
 
id: power-management/rtc
161
 
requires:
162
 
  rtc.state == 'supported'
163
 
  package.name == 'util-linux'
164
 
  cpuinfo.other != 'emulated by qemu'
165
 
user: root
166
 
command: hwclock -r
167
 
estimated_duration: 0.02
168
 
_summary: Test that RTC functions properly (if present)
169
 
_description:
170
 
 Verify that the Real-time clock (RTC) device functions properly, if present.
171
 
 
172
 
plugin: shell
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)
178
 
command:
179
 
 zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1 || ( echo "WARNING: Tickless Idle is NOT set" >&2 && exit 1 )
180
 
 
181
 
plugin: manual
182
 
category_id: 2013.com.canonical.plainbox::power-management
183
 
id: power-management/unplug_ac
184
 
estimated_duration: 30.0
185
 
_description:
186
 
 PURPOSE:
187
 
     This test will ensure that the AC is unplugged for the battery drain tests to run.
188
 
 STEPS:
189
 
     1. Unplug laptop from AC.
190
 
 VERIFICATION:
191
 
     Was the laptop unplugged from AC?
192
 
 
193
 
plugin: shell
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.
200
 
command:
201
 
 battery_test -t 90 --idle
202
 
 
203
 
plugin: shell
204
 
category_id: 2013.com.canonical.plainbox::power-management
205
 
id: power-management/battery_drain_movie
206
 
estimated_duration: 90.0
207
 
requires:
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.
211
 
command:
212
 
 battery_test -t 90 --movie $MOVIE_VAR
213
 
 
214
 
plugin: shell
215
 
category_id: 2013.com.canonical.plainbox::power-management
216
 
id: power-management/battery_drain_sleep
217
 
estimated_duration: 140.0
218
 
user: root
219
 
requires:
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.
224
 
command:
225
 
 battery_test -t 120 --sleep
226
 
 
227
 
plugin: manual
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
232
 
_description:
233
 
 PURPOSE:
234
 
     This test will ensure that the AC is plugged back in after the battery tests.
235
 
 STEPS:
236
 
     1. Plug laptop into AC.
237
 
 VERIFICATION:
238
 
     Was the laptop plugged into AC?
239
 
 
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
244
 
user:root
245
 
command: shutdown -r now
246
 
_description:
247
 
 PURPOSE:
248
 
     This test will verify that your system can successfully reboot.
249
 
 STEPS:
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.
257
 
 VERIFICATION:
258
 
     Did the system reboot correctly?
259
 
 
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
264
 
user: root
265
 
command: shutdown -h now
266
 
_description:
267
 
 PURPOSE:
268
 
     This test will check your system shutdown/booting cycle
269
 
 STEPS:
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.
277
 
 VERIFICATION:
278
 
     Did the system shutdown and boot correctly?
279