~kissiel/checkbox/translations

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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_scanning
requires:
  package.name == 'network-manager'
  device.category == 'WIRELESS'
command:
 rfkill unblock wlan wifi
 if rfkill list wlan wifi | grep -q 'Hard blocked: yes'; then
   echo "Hard block is applied to WiFi device. Please remove and retest."
   exit 1
 fi
 wireless_networks=`(nmcli -f SSID dev wifi list 2>/dev/null || nmcli -f SSID dev wifi)`
 if [ `echo "$wireless_networks" | wc -l` -gt 1 ]; then
   echo "Wireless networks discovered: "
   echo "$wireless_networks"
   exit 0
 fi
 echo "No wireless networks discovered."
 exit 1
estimated_duration: 0.645
_description: Wireless scanning test. It scans and reports on discovered APs.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/info_automated
requires:
 package.name == 'network-manager'
 device.category == 'WIRELESS'
command: udev_resource | filter_templates -w "category=WIRELESS"| awk "/path: / { print \$2 }"| xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do network_info \$i; done"
estimated_duration: 1.2
_description:
 This is an automated test to gather some info on the current state of your wireless devices. If no devices are found, the test will exit with an error.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection
command: network_check
estimated_duration: 120.0
requires: device.category == 'WIRELESS'
_description:
 PURPOSE:
     This test will check your wireless connection.
 STEPS:
     1. Click on the Network icon in the panel.
     2. Select a network below the 'Wireless networks' section.
     3. Click "Test" to verify that it's possible to establish an HTTP connection.
 VERIFICATION:
     Did a notification show and was the connection correctly established?

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_bg
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
user: root
environ: WPA_BG_SSID WPA_BG_PSK
command:
    trap "nmcli con delete id $WPA_BG_SSID" EXIT
    if create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using WPA
 security and the 802.11b/g protocols.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_bg
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
user: root
environ: OPEN_BG_SSID
command:
    trap "nmcli con delete id $OPEN_BG_SSID" EXIT
    if create_connection wifi $OPEN_BG_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using no
 security and the 802.11b/g protocols.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_n
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
user: root
environ: WPA_N_SSID WPA_N_PSK
command:
    trap "nmcli con delete id $WPA_N_SSID" EXIT
    if create_connection wifi $WPA_N_SSID --security=wpa --key=$WPA_N_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using WPA
 security and the 802.11n protocol.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_n
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
user: root
environ: OPEN_N_SSID
command:
    trap "nmcli con delete id $OPEN_N_SSID" EXIT
    if create_connection wifi $OPEN_N_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using no
 security and the 802.11n protocol.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_ac
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
 IEEE_80211.ac == 'supported'
user: root
environ: WPA_AC_SSID WPA_AC_PSK
command:
    trap "nmcli con delete id $WPA_AC_SSID" EXIT
    if create_connection wifi $WPA_AC_SSID --security=wpa --key=$WPA_AC_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using WPA
 security and the 802.11ac protocol.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_ac
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
 IEEE_80211.ac == 'supported'
user: root
environ: OPEN_AC_SSID
command:
    trap "nmcli con delete id $OPEN_AC_SSID" EXIT
    if create_connection wifi $OPEN_AC_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
 Tests that the systems wireless hardware can connect to a router using no
 security and the 802.11ac protocol.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_bg_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
user: root
environ: ROUTER_SSID ROUTER_PSK
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using WPA
     security and the 802.11b/g protocols.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections on the B and G wireless bands
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use WPA2 and ensure the PSK matches what is set in the ROUTER_PSK environment variable
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_bg_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
user: root
environ: ROUTER_SSID
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using
     no security and the 802.11b/g protocols.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections on the B and G wireless bands
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use no security
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_n_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
 IEEE_80211.band_5GHz == 'supported'
user: root
environ: ROUTER_SSID ROUTER_PSK
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using WPA
     security and the 802.11n protocols.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections on the N wireless band
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use WPA2 and ensure the PSK matches what is set in the ROUTER_PSK environment variable
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_n_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
 IEEE_80211.band_5GHz == 'supported'
user: root
environ: ROUTER_SSID
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using
     no security and the 802.11n protocol.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections on the N wireless band
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use no security
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_ac_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
 IEEE_80211.ac == 'supported'
user: root
environ: ROUTER_SSID ROUTER_PSK
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using WPA
     security and the 802.11ac protocol.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections with the 802.11ac protocol.
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use WPA2 and ensure the PSK matches what is set in the ROUTER_PSK environment variable
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_ac_manual
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'single'
 IEEE_80211.ac == 'supported'
user: root
environ: ROUTER_SSID
command:
    trap "nmcli con delete id $ROUTER_SSID" EXIT
    if create_connection wifi $ROUTER_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 120.0
_description:
 PURPOSE:
     Tests that the systems wireless hardware can connect to a router using
     no security and the 802.11ac protocol.
 STEPS:
     1. Open your router's configuration tool
     2. Change the settings to only accept connections with the 802.11ac protocol.
     3. Make sure the SSID is set to the contents of the ROUTER_SSID environment variable
     4. Change the security settings to use no security
     5. Click the 'Test' button to create a connection to the router and test the connection
 VERIFICATION:
     Verification is automated, do not change the automatically selected result.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/monitor_wireless_connection
requires:
 package.name == 'iperf'
 device.category == 'WIRELESS'
user: root
environ: WPA_BG_SSID WPA_BG_PSK SERVER_IPERF
command:
    trap "nmcli con delete id $WPA_BG_SSID" EXIT
    if create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        iperf -c $SERVER_IPERF -t 300 -i 30
    else
        exit 1
    fi
estimated_duration: 330.0
_description:
 Tests the performance of a system's wireless connection through the iperf tool.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/monitor_wireless_connection_udp
requires:
 package.name == 'iperf'
 device.category == 'WIRELESS'
user: root
environ: WPA_BG_SSID WPA_BG_PSK SERVER_IPERF
command:
    trap "nmcli con delete id $WPA_BG_SSID" EXIT
    if create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        iperf -c $SERVER_IPERF -t 300 -i 30 -u -b 100m -p 5050
    else
        exit 1
    fi
estimated_duration: 330.0
_description:
 Tests the performance of a system's wireless connection through the iperf tool, using UDP packets.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_a
requires:
 device.category == 'WIRELESS'
 IEEE_80211.band_5GHz == 'supported'
user: root
environ: OPEN_A_SSID
command:
    trap "nmcli con delete id $OPEN_A_SSID" EXIT
    if create_connection wifi $OPEN_A_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
  Test that the system's wireless hardware can connect to a router using the
  802.11a protocol. This requires that you have a router pre-configured to only
  respond to requests on the 802.11a protocol.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_b
requires:
 device.category == 'WIRELESS'
user: root
environ: OPEN_B_SSID
command:
    trap "nmcli con delete id $OPEN_B_SSID" EXIT
    if create_connection wifi $OPEN_B_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
  Test that the system's wireless hardware can connect to a router using the
  802.11b protocol. This requires that you have a router pre-configured to only
  respond to requests on the 802.11b protocol.

plugin: local
_summary: Automated test that tests performance of each wireless network device under stress.
id: wireless/stress_performance
requires:
  device.category == 'NETWORK'
_description: Automated test that tests performance of each wireless network device under stress.
command:
 cat <<'EOF' | run_templates -s 'udev_resource | filter_templates -w "category=WIRELESS" | awk "/path: / { print \$2 }" | xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do echo \$0 \$i; done"'
 plugin: shell
 category_id: 2013.com.canonical.plainbox::wireless
 id: wireless/stress_performance_$2
 requires: device.path == "$1"
 user: root
 command: network test -i $2 -t stress
 estimated_duration: 330.0
 _description:
  This test executes iperf to generate a load on the network device and then performs a ping test to watch for dropped packets and very large latency periods.
 EOF

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_open_g
requires:
 device.category == 'WIRELESS'
user: root
environ: OPEN_G_SSID
command:
    trap "nmcli con delete id $OPEN_G_SSID" EXIT
    if create_connection wifi $OPEN_G_SSID; then
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
    else
        exit 1
    fi
estimated_duration: 30.0
_description:
  Test that the system's wireless hardware can connect to a router using the
  802.11g protocol. This requires that you have a router pre-configured to only
  respond to requests on the 802.11g protocol.

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_extension
requires: device.category == 'WIRELESS'
command: wireless_ext
estimated_duration: 1.2
_description:
 Test that the MAC80211 modules are loaded and wireless extensions are working.

plugin: local
id: wireless/iwconfig_info
requires:
 device.category == 'WIRELESS'
command: 
 cat <<'EOF' | run_templates -s 'udev_resource | filter_templates -w "category=WIRELESS" | awk "/path: / { print \$2 }" | xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do echo \$0 \$i; done"'
 plugin: shell
 category_id: 2013.com.canonical.plainbox::wireless
 id: wireless/iwconfig_check_$2
 requires: device.path == "$1"
 command: iwconfig $2
 estimated_duration: 1.2
 _description:
  This test executes iwconfig requests against all the ethernet devices found on the system.
 EOF
_description:
 This is an automated test to gather some info on the current state of your network devices. If no devices are found, the test will exit with an error.

plugin: user-interact-verify
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_rfkill
command: rfkill list | zenity --text-info --title rfkill-Info
estimated_duration: 120.0
requires: device.category == 'WIRELESS'
_description:
 PURPOSE:
     This test will check whether or not your driver responds to rfkill commands.
 STEPS:
     1. Use the hardware switch on the side of your device to switch off wireless.
     2. If you do not have a hardware switch disable wireless from the network manager icon in the panel
     3. Click "Test" to verify that the hard or soft blocks are in place.
 VERIFICATION:
     Did the hard or soft blocks show on in the dialog?

plugin: local
id: wireless/maximum_bandwidth
requires:
 device.category == 'WIRELESS'
 package.name == 'zenity'
 package.name == 'iperf'
command:
 cat <<'EOF' | run_templates -s 'udev_resource | filter_templates -w "category=WIRELESS" | awk "/path: / { print \$2 }" | xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do echo \$0 \$i; done"'
 plugin: user-interact-verify
 category_id: 2013.com.canonical.plainbox::wireless
 user: root
 id: wireless/maximum_bandwidth_$2
 requires: device.path == "$1"
 command: network test -i $2 -t iperf 2>&1 | cat - <(echo; echo "Verify the result and click OK to decide on the outcome") | zenity --text-info --title 'wireless max bw $2'
 estimated_duration: 120.0
 _description:
  PURPOSE:
      User verification of whether the observed transfer throughput is acceptable
      for the type and maximum speed of each wireless interface.
  STEPS:
      1. Click "Test".
      2. Read the network test summary and confirm that the throughput is acceptable.
      3. If needed, click "Test" again to repeat the transfer test.
  VERIFICATION:
     Was the reported throughput acceptable for the type and maximum speed of this interface?
 EOF
_description:
 This test executes a maximum throughput test against all the wireless devices found on the system.