This file is indexed.

/usr/share/2013.com.canonical.certification:checkbox/jobs/power-management.txt.in is in plainbox-provider-checkbox 0.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
plugin: manual
id: power-management/shutdown-boot
_description:
 PURPOSE:
     This test will check your system shutdown/booting cycle.
 STEPS:
     1. Shutdown your machine.
     2. Boot your machine.
     3. Repeat steps 1 and 2 at least 5 times.
 VERIFICATION:
     Did the system shutdown and rebooted correctly?

plugin: shell
id: power-management/fwts_wakealarm
environ: PLAINBOX_SESSION_SHARE
user: root
_description: Test ACPI Wakealarm (fwts wakealarm)
requires:
 package.name == 'fwts'
command: fwts_test -f aborted -t wakealarm -l $PLAINBOX_SESSION_SHARE/fwts-wakealarm.log

plugin: attachment
id: power-management/fwts_wakealarm-log-attach
depends: power-management/fwts_wakealarm
_description: Attach log from fwts wakealarm test
requires:
 package.name == 'fwts'
command: [ -e ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log ] && cat ${PLAINBOX_SESSION_SHARE}/fwts-wakealarm.log

plugin: user-interact-verify
id: power-management/poweroff
depends: power-management/fwts_wakealarm
user: root
environ: PLAINBOX_SESSION_SHARE
requires:
 package.name == 'upstart'
 package.name == 'fwts'
command: pm_test poweroff --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
_description:
 PURPOSE:
  This test will check the system's ability to power-off and boot.
 STEPS:
  1. Select "Test" to begin.
  2. The machine will shut down.
  3. Power the machine back on.
  4. After rebooting, wait for the test prompts to inform you that the test is complete.
  5. Once the test has completed, restart checkbox and select 'Re-run' when prompted.
 VERIFICATION:
  If the machine successfully shuts down and boots, select 'Yes', otherwise,
  select 'No'.

plugin: attachment
id: power-management/poweroff-log-attach
command: tar cvfz power-management_poweroff.tgz $PLAINBOX_SESSION_SHARE/*poweroff.1.log && cat $PLAINBOX_SESSION_SHARE/power-management_poweroff.tgz
_description:
 This will attach any logs from the power-management/poweroff test to the results.

plugin: user-interact-verify
id: power-management/reboot
user: root
environ: PLAINBOX_SESSION_SHARE
requires:
 package.name == 'upstart'
 package.name == 'fwts'
command: pm_test reboot --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
_description:
 PURPOSE:
  This test will check the system's ability to reboot cleanly.
 STEPS:
  1. Select "Test" to begin.
  2. The machine will reboot.
  3. After rebooting, wait for the test prompts to inform you that the test is complete.
  4. Once the test has completed, restart checkbox and select Re-Run when prompted.
 VERIFICATION:
  If the machine successfully reboots, select Yes then select Next.

plugin: attachment
id: power-management/reboot-log-attach
command: tar cvfz power-management_reboot.tgz $PLAINBOX_SESSION_SHARE/*reboot.1.log && cat $PLAINBOX_SESSION_SHARE/power-management_reboot.tgz
_description:
 This will attach any logs from the power-management/reboot test to the results.

plugin: manual
id: power-management/lid
requires: dmi.product in ['Notebook','Laptop','Portable']
_description:
 PURPOSE:
     This test will check your lid sensors.
 STEPS:
     1. Close your laptop lid.
 VERIFICATION:
    Does closing your laptop lid cause your system to suspend?

plugin: user-interact
id: power-management/lid_close
requires: device.product == 'Lid Switch'
command:
 for i in `seq 20`; do
  state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
  [ "$state" = "closed" ] && exit 0 || sleep 0.5
 done
 exit 1
_description:
 PURPOSE:
     This test will check your lid sensors
 STEPS:
     1. Click "Test".
     2. Close and open the lid.
 VERIFICATION:
     Did the screen turn off while the lid was closed?

plugin: user-interact
id: power-management/lid_open
requires: device.product == 'Lid Switch'
command:
 for i in `seq 20`; do
  state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
  [ "$state" = "open" ] && exit 0 || sleep 0.5
 done
 exit 1
_description:
 PURPOSE:
     This test will check your lid sensors.
 STEPS:
     1. Click "Test".
     2. Close the lid.
     3. Wait 5 seconds with the lid closed.
     4. Open the lid.
 VERIFICATION:
     Did the system resume when the lid was opened?

plugin: shell
id: power-management/rtc
requires:
  rtc.state == 'supported'
  package.name == 'util-linux'
user: root
command: hwclock -r
estimated_duration: 0.02
_description:
 Verify that the Real-time clock (RTC) device functions properly, if present

plugin: shell
id: power-management/tickless_idle
_description: Check to see if CONFIG_NO_HZ is set in the kernel (this is just a simple regression check)
command:
 zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1 || ( echo "WARNING: Tickless Idle is NOT set" >&2 && exit 1 )

plugin: manual
id: power-management/unplug_ac
_description:
 PURPOSE:
     This test will ensure that the AC is unplugged for the battery drain tests to run.
 STEPS:
     1. Unplug laptop from AC.
 VERIFICATION:
     Was the laptop unplugged from AC?

plugin: shell
id: power-management/battery_drain_idle
requires: package.name == 'upower'
depends: power-management/unplug_ac
_description: Checks the battery drain during idle.  Reports time until empty
 and capacity as well.
command:
 battery_test -t 90 --idle

plugin: shell
id: power-management/battery_drain_movie
requires:
 package.name == 'upower'
depends: power-management/unplug_ac
_description: Checks the battery drain while watching a movie.  Reports time
 until empty and capacity as well.  Requires MOVIE_VAR to be set.
command:
 battery_test -t 90 --movie $MOVIE_VAR

plugin: shell
id: power-management/battery_drain_sleep
user: root
requires:
 package.name == 'upower'
 package.name == 'fwts'
depends: power-management/unplug_ac
_description: Checks the battery drain during suspend.  Reports time until
 empty and capacity as well.
command:
 battery_test -t 120 --sleep

plugin: manual
id: power-management/plug_ac
depends: power-management/battery_drain_idle power-management/battery_drain_movie power-management/battery_drain_sleep
_description:
 PURPOSE:
     This test will ensure that the AC is plugged back in after the battery.
     tests
 STEPS:
     1. Plug laptop into AC.
 VERIFICATION:
     Was the laptop plugged into AC?

plugin: user-interact-verify
id: power-management/reboot_manual
user:root
command: shutdown -r now
_description:
 PURPOSE:
     This test will verify that your system can successfully reboot.
 STEPS:
     1. Select 'Test' to initiate a system reboot.
     2. When the grub boot menu is displayed, boot into Ubuntu (Or allow the
     system to automatically boot on its own).
     3. Once the system has restarted, log in and restart checkbox-certification-server.
     4. Select 'Re-Run' to return to this test.
     5. Select 'Yes' to indicate the test has passed if the system rebooted
     successfully, otherwise, select 'No' to indicate there was a problem.
 VERIFICATION:
     Did the system reboot correctly?

plugin: user-interact-verify
id: power-management/shutdown_manual
user: root
command: shutdown -h now
_description:
 PURPOSE:
     This test will check your system shutdown/booting cycle
 STEPS:
     1. Select 'Test' to initiate a system shutdown.
     2. Power the system back on.
     3. From the grub menu, boot into the Xen Hypervisor.
     4. When the system has restarted, log in and restart checkbox-certification-server.
     5. Select 'Re-Run' to return to this test.
     6. Select 'Yes' to indicate the test has passed if the machine shut down
     successfully otherwise, Select 'No' to indicate there was a problem.
 VERIFICATION:
     Did the system shutdown and boot correctly?