This file is indexed.

/usr/share/plainbox-provider-checkbox/jobs/optical.txt.in is in plainbox-provider-checkbox 0.25-2.

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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
plugin: shell
category_id: 2013.com.canonical.plainbox::optical
id: optical/detect
requires: device.category == 'CDROM'
estimated_duration: 1.2
_description: Detects optical drives (CD/DVD) attached to the system.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"' | sed '/^$/d'
 $vendor $product
 EOF

plugin: local
_summary: Optical read test.
id: optical/read
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: Optical read test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: user-interact-verify
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/read_`ls /sys$path/block`
 requires: device.path == "$path"
 estimated_duration: 120.0
 user: root
 command: optical_read_test /dev/`ls /sys$path/block`
 description:
  PURPOSE:
      This test will check your $product device's ability to read CD media
  STEPS:
      1. Insert appropriate non-blank media into your optical drive(s). Movie and Audio Disks may not work. Self-created data disks have the greatest chance of working.
      2. If a file browser window opens, you can safely close or ignore that window.
      3. Click "Test" to begin the test.
  VERIFICATION:
      This test should automatically select "Yes" if it passes, "No" if it fails.
 EOF

plugin: local
_summary: Automated optical read test.
id: optical/read-automated
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: 
 Automated test to read a data CD/DVD and ensure the optical drive works properly.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: shell
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/read-automated_`ls /sys$path/block`
 estimated_duration: 120.0
 requires: device.path == "$path"
 user: root
 command: optical_read_test /dev/`ls /sys$path/block`
 description:
  This is an automated version of optical/read. It assumes you have already inserted a data CD into your optical drive prior to running Checkbox.
 EOF

plugin: local
_summary: CD write test.
id: optical/cdrom-write
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: CD write test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: user-interact-verify
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/cdrom-write_`ls /sys$path/block`
 estimated_duration: 120.0
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.cd_write == 'supported'
 user: root
 command: set -o pipefail; optical_write_test /dev/`ls /sys$path/block` cd | ansi_parser
 description:
  PURPOSE:
      This test will check your system's $product CD writing capabilities. This test requires a blank CD-R or CD+R.
  STEPS:
      Skip this test if you do not have a blank CD disk.
      1. Insert a blank CD-R or CD+R into your drive
      2. Click "Test" to begin.
      3. When the CD tray ejects the media after burning, close it (DO NOT remove the disk, it is needed for the second portion of the test). Note, you must close the drive within 5 minutes or the test will time out.
  VERIFICATION:
      This test should automatically select "Yes" if it passes, "No" if it fails.
 EOF

plugin: local
_summary: Automated CD write test
id: optical/cdrom-write-automated
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: Automated CD write test
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: shell
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/cdrom-write-automated_`ls /sys$path/block`
 estimated_duration: 120.0
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.cd_write == 'supported'
 user: root
 command: set -o pipefail; optical_write_test /dev/`ls /sys$path/block` cd | ansi_parser
 description:
  This is an automated version of optical/cdrom-write. It assumes you have already inserted a data CD into your optical drive prior to running Checkbox.
 EOF

plugin: manual
category_id: 2013.com.canonical.plainbox::optical
id: optical/cdrom-audio-playback
depends: optical/read
estimated_duration: 120.0
_description:
 PURPOSE:
     This test will check your CD audio playback capabilities
 STEPS:
     1. Insert an audio CD in your optical drive
     2. When prompted, launch the Music Player
     3. Locate the CD in the display of the Music Player
     4. Select the CD in the Music Player
     5. Click the Play button to listen to the music on the CD
     6. Stop playing after some time
     7. Right click on the CD icon and select "Eject Disc"
     8. The CD should be ejected
     9. Close the Music Player
 VERIFICATION:
     Did all the steps work?

plugin: local
_summary: DVD write test.
id: optical/dvd-write
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: DVD write test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: user-interact-verify
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/dvd-write_`ls /sys$path/block`
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.dvd_write == 'supported'
 estimated_duration: 120.0
 user: root
 command: set -o pipefail; optical_write_test /dev/`ls /sys$path/block` dvd | ansi_parser
 description:
  PURPOSE:
      This test will check your system's $product writing capabilities. This test requires a blank DVD-R or DVD+R.
  STEPS:
      Skip this test if you do not have a blank DVD disk.
      1. Enter a blank DVD-R or DVD+R into your drive
      2. Click "Test" to begin.
      3. When the CD tray ejects the media after burning, close it (DO NOT remove the disk, it is needed for the second portion of the test). Note, you must close the drive within 5 minutes or the test will time out.
  VERIFICATION:
      This test should automatically select "Yes" if it passes, "No" if it fails.
 EOF

plugin: local
_summary: Automated DVD write test.
id: optical/dvd-write-automated
estimated_duration: 1.0
requires:
 device.category == 'CDROM'
_description: Automated DVD write test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: shell
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/dvd-write-automated_`ls /sys$path/block`
 estimated_duration: 120.0
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.dvd_write == 'supported'
 user: root
 command: set -o pipefail; optical_write_test /dev/`ls /sys$path/block` dvd | ansi_parser
 description:
  This is an automated version of optical/dvd-write. It assumes you have already inserted a data DVD into your optical drive prior to running Checkbox.
 EOF

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::optical
id: optical/dvd_playback
command: totem /media/cdrom
estimated_duration: 120.0
requires:
 device.category == 'CDROM'
 package.name == 'totem'
_description:
 PURPOSE:
     This test will check your DVD  playback capabilities
 STEPS:
     1. Insert a DVD that contains any movie in your optical drive
     2. Click "Test" to play the DVD in Totem
 VERIFICATION:
     Did the file play?

plugin: local
_summary: Automated Blu-Ray read test.
id: optical/bluray-read
estimated_duration: 1.0
requires: device.category == 'CDROM'
_description: Automated Blu-Ray read test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: user-interact
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/bluray-read_`ls /sys$path/block`
 estimated_duration: 120.0
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.bd_read == "supported"
 user: root
 command: optical_read_test /dev/`ls /sys$path/block`
 description:
  PURPOSE:
   This test will check your $product device's ability to read Blu-Ray (BD) media
  STEPS:
   1. Insert appropriate non-blank media into your Blu-Ray drive. Movie and Audio Disks may not work. Self-created data disks have the greatest chance of working.
   2. If a file browser window opens, you can safely close or ignore that window.
   3. Click "Test" to begin the test.
  VERIFICATION:
   This test should automatically select "Yes" if it passes, "No" if it fails.
 EOF

plugin: local
_summary: Automated Blu-Ray write test.
id: optical/bluray-write
estimated_duration: 1.0
requires: device.category == 'CDROM'
_description: Automated Blu-Ray write test.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 plugin: user-interact
 category_id: 2013.com.canonical.plainbox::optical
 id: optical/bluray-write_`ls /sys$path/block`
 requires:
  device.path == "$path"
  optical_drive_`ls /sys$path/block`.bd_write == "supported"
  package.name == "growisofs"
 user: root
 command: set -o pipefail; optical_write_test /dev/`ls /sys$path/block` bd | ansi_parser
 estimated_duration: 120.00
 description:
  PURPOSE:
   This test will check your $product device's ability to write Blu-Ray (BD) media
  STEPS:
   Skip this test if you do not have a blank BD-R disc
   1. Insert appropriate writable media into your Blu-Ray drive.
   2. Click "Test" to begin the test.
  VERIFICATION:
   This test should automatically select "Yes" if it passes, "No" if it fails.
 EOF