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

« back to all changes in this revision

Viewing changes to checkbox-old/jobs/networking.txt.in

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
plugin: shell
 
2
name: networking/detect
 
3
requires:
 
4
 device.category == 'NETWORK' or device.category == 'WIRELESS'
 
5
 package.name == 'module-init-tools'
 
6
 package.name == 'pciutils'
 
7
command: network_device_info
 
8
_description: Test to detect the available network controllers
 
9
 
 
10
plugin: shell 
 
11
name: networking/internet
 
12
depends: networking/detect
 
13
command: internet_test
 
14
_description: Tests whether the system has a working Internet connection.
 
15
 
 
16
plugin: local
 
17
name: networking/info
 
18
requires: device.category == 'NETWORK'
 
19
_description: Network Information
 
20
command:
 
21
 cat <<'EOF' | run_templates -s 'udev_resource | filter_templates -w "category=NETWORK" | awk "/path: / { print \$2 }" | xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do echo \$0 \$i; done"'
 
22
 plugin: manual
 
23
 name: networking/info_$2
 
24
 requires: device.path == "$1"
 
25
 command: network_info $2
 
26
 _description:
 
27
  PURPOSE:
 
28
      This test will check the different NIC
 
29
  STEPS:
 
30
      1. Please verify the following information for NIC $2
 
31
  INFO:
 
32
      \$output
 
33
  VERIFICATION:
 
34
      Is this correct?
 
35
 EOF
 
36
 
 
37
plugin: shell 
 
38
name: networking/info_automated
 
39
requires: 
 
40
 package.name == 'network-manager'
 
41
 device.category == 'NETWORK'
 
42
command: udev_resource | filter_templates -w "category=WIRELESS" -w "category=NETWORK"| awk "/path: / { print \$2 }"| xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do network_info \$i; done"
 
43
_description:
 
44
 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.
 
45
 
 
46
plugin: manual
 
47
name: networking/wired_connection
 
48
command: network_check
 
49
_description:
 
50
 PURPOSE:
 
51
     This test will check your wired connection
 
52
 STEPS:
 
53
     1. Click on the Network icon in the top panel
 
54
     2. Select a network below the "Wired network" section
 
55
     3. Click "Test" to verify that it's possible to establish a HTTP connection
 
56
 VERIFICATION:
 
57
     Did a notification show and was the connection correctly established?
 
58
 
 
59
plugin: manual
 
60
name: networking/modem_connection
 
61
command: network_check
 
62
_description:
 
63
 PURPOSE:
 
64
     This test will check that a DSL modem can be configured and connected.
 
65
 STEPS:
 
66
     1. Connect the telephone line to the computer
 
67
     2. Click on the Network icon on the top panel.
 
68
     3. Select "Edit Connections"
 
69
     4. Select the "DSL" tab
 
70
     5. Click on "Add" button
 
71
     6. Configure the connection parameters properly
 
72
     7. Click "Test" to verify that it's possible to establish an HTTP connection
 
73
 VERIFICATION:
 
74
     Did a notification show and was the connection correctly established?
 
75
 
 
76
plugin: shell
 
77
name: networking/ping
 
78
command: internet_test $CHECKBOX_SERVER
 
79
_description:
 
80
 Automated test case to verify availability of some system on the network
 
81
 using ICMP ECHO packets.
 
82
 
 
83
plugin: shell
 
84
name: networking/http
 
85
command: wget -SO /dev/null http://$TRANSFER_SERVER
 
86
_description:
 
87
 Automated test case to make sure that it's possible to download files through HTTP
 
88
 
 
89
plugin: shell
 
90
name: networking/ntp
 
91
requires: package.name == 'ntpdate'
 
92
user: root
 
93
command: network_ntp_test 
 
94
_description: Test to see if we can sync local clock to an NTP server
 
95
 
 
96
plugin: shell
 
97
name: networking/ssh
 
98
requires: package.name == 'openssh-client'
 
99
command: if [ $CHECKBOX_SERVER ]; then ssh -q -o 'StrictHostKeyChecking=no' -o "UserKnownHostsFile=/tmp/ssh_test_$$" -l ubuntu $CHECKBOX_SERVER "uname -a" && rm /tmp/ssh_test_$$; fi
 
100
_description: Verify that an installation of checkbox-server on the network can be reached over SSH.
 
101
 
 
102
plugin: shell
 
103
name: networking/printer
 
104
requires: package.name == 'cups-client'
 
105
command: network_printer_test -s $CHECKBOX_SERVER
 
106
_description: Try to enable a remote printer on the network and print a test page.
 
107
 
 
108
plugin: local
 
109
name: networking/multi_nic
 
110
requires: device.category == 'NETWORK'
 
111
_description: Automated test to walk multiple network cards and test each one in sequence.
 
112
command:
 
113
 cat <<'EOF' | run_templates -s 'udev_resource | filter_templates -w "category=NETWORK" | awk "/path: / { print \$2 }" | xargs -n 1 sh -c "for i in \`ls /sys\$0/net 2>/dev/null\`; do echo \$0 \$i; done"'
 
114
 plugin: shell
 
115
 name: networking/multi_nic_$2
 
116
 requires:
 
117
  package.name == 'ethtool' and package.name == 'nmap'
 
118
  device.path == "$1"
 
119
 user: root
 
120
 command: network test -i $2 -t ftp
 
121
 description:
 
122
  Testing for NIC $2
 
123
 EOF