Commit | Line | Data |
---|---|---|
4c3d6586 | 1 | device_type: x86 |
6b9bcf12 JR |
2 | job_name: {{ job_name }} |
3 | timeouts: | |
4 | job: | |
8086ddb3 | 5 | hours: 3 |
33f6fe56 | 6 | action: |
8086ddb3 | 7 | hours: 3 |
33f6fe56 JR |
8 | connection: |
9 | minutes: 4 | |
10 | connections: | |
11 | lava-test-shell: | |
12 | minutes: 4 | |
6b9bcf12 JR |
13 | priority: medium |
14 | visibility: public | |
6b9bcf12 | 15 | context: |
620516c2 | 16 | extra_kernel_args: cpuidle.off=1 |
5a6608da | 17 | extra_nfsroot_args: ",nfsvers=3 nfsrootdebug" |
c0431a7e | 18 | lava_test_sh_cmd: "/bin/bash" |
620516c2 | 19 | |
e8ca2f76 | 20 | {% if device_type == DeviceType.kvm %} |
4c3d6586 JR |
21 | tags: |
22 | - qemu | |
4cb5cc4f JR |
23 | {% endif %} |
24 | {% if device_type == DeviceType.x86 %} | |
6b9bcf12 JR |
25 | tags: |
26 | - dev-sda1 | |
4cb5cc4f | 27 | {% endif %} |
6b9bcf12 JR |
28 | |
29 | metadata: | |
4cb5cc4f JR |
30 | jenkins_jobname: {{ job_name }} |
31 | {% if test_type == TestType.kvm_fuzzing_tests %} | |
6b9bcf12 | 32 | nb_iterations: {{ kprobe_round_nb }} |
4cb5cc4f | 33 | {% endif %} |
6b9bcf12 JR |
34 | |
35 | ||
36 | actions: | |
9665810d JR |
37 | - deploy: |
38 | timeout: | |
39 | minutes: 10 | |
40 | to: tftp | |
41 | kernel: | |
42 | url: {{ kernel_url }} | |
43 | type: zimage | |
9665810d JR |
44 | modules: |
45 | url: {{ lttng_modules_url }} | |
9665810d JR |
46 | compression: gz |
47 | nfsrootfs: | |
48 | url: {{ nfsrootfs_url }} | |
49 | compression: gz | |
6b9bcf12 | 50 | |
9665810d JR |
51 | - boot: |
52 | timeout: | |
53 | minutes: 10 | |
9665810d | 54 | method: ipxe |
d2fdefc4 | 55 | commands: nfs |
ca08dcdf JR |
56 | auto_login: |
57 | login_prompt: 'login:' | |
58 | username: root | |
59 | password_prompt: 'Password:' | |
60 | password: root | |
9665810d JR |
61 | prompts: |
62 | - 'root@linaro-server:~#' | |
9665810d JR |
63 | |
64 | - test: | |
65 | definitions: | |
66 | # Base setup of environment # | |
67 | - repository: | |
68 | metadata: | |
69 | format: Lava-Test Test Definition 1.0 | |
70 | name: x86-env-setup | |
71 | description: "Basic environment setup for x86 board" | |
72 | os: | |
73 | - ubuntu | |
74 | devices: | |
75 | - x86 | |
76 | run: | |
77 | steps: | |
1bc2b3de JR |
78 | - chmod 755 / |
79 | - systemctl start systemd-timesyncd | |
9665810d | 80 | - echo nameserver 172.18.0.12 > /etc/resolv.conf |
ca08dcdf | 81 | - ip a |
9665810d JR |
82 | - groupadd tracing |
83 | {% if device_type == DeviceType.x86 %} | |
84 | - mount /dev/sda1 /tmp | |
e640b6d8 JR |
85 | {% elif device_type == DeviceType.kvm %} |
86 | - mount /dev/sda /tmp | |
c11ec858 | 87 | {% endif %} |
e640b6d8 | 88 | - rm -rf /tmp/* |
9665810d JR |
89 | - depmod -a |
90 | - locale-gen en_US.UTF-8 | |
91 | - apt-get update | |
92 | - apt-get upgrade | |
9665810d JR |
93 | {% if test_type != TestType.kvm_fuzzing_tests %} |
94 | - pip3 install --upgrade pip | |
95 | - hash -r | |
96 | - pip3 install vlttng | |
97 | - {{ vlttng_cmd }} | |
98 | - ln -s {{ vlttng_path }} /root/lttngvenv | |
99 | - sync | |
100 | {% endif %} | |
101 | from: inline | |
102 | name: x86-env-setup-inline | |
103 | path: inline/x86-env-setup.yaml | |
104 | {% if test_type == TestType.baremetal_benchmarks %} | |
105 | - repository: https://github.com/lttng/lttng-ci.git | |
106 | from: git | |
107 | path: lava/system-tests/failing-close.yml | |
108 | name: failing-close | |
6b35e57c JR |
109 | params: |
110 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
111 | - repository: https://github.com/lttng/lttng-ci.git |
112 | from: git | |
113 | path: lava/system-tests/failing-ioctl.yml | |
114 | name: failing-ioctl | |
6b35e57c JR |
115 | params: |
116 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
117 | - repository: https://github.com/lttng/lttng-ci.git |
118 | from: git | |
119 | path: lava/system-tests/failing-open-efault.yml | |
120 | name: failing-open-efault | |
6b35e57c JR |
121 | params: |
122 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
123 | - repository: https://github.com/lttng/lttng-ci.git |
124 | from: git | |
125 | path: lava/system-tests/success-dup-close.yml | |
126 | name: success-dup-close | |
6b35e57c JR |
127 | params: |
128 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
129 | - repository: https://github.com/lttng/lttng-ci.git |
130 | from: git | |
131 | path: lava/system-tests/raw-syscall-getpid.yml | |
132 | name: raw-syscall-getpid | |
6b35e57c JR |
133 | params: |
134 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
135 | - repository: https://github.com/lttng/lttng-ci.git |
136 | from: git | |
137 | path: lava/system-tests/failing-open-enoent.yml | |
138 | name: failing-open-enoent | |
6b35e57c JR |
139 | params: |
140 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
141 | - repository: https://github.com/lttng/lttng-ci.git |
142 | from: git | |
143 | path: lava/system-tests/lttng-test-filter.yml | |
144 | name: lttng-test-filter | |
6b35e57c JR |
145 | params: |
146 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
147 | {% elif test_type == TestType.baremetal_tests %} |
148 | - repository: https://github.com/lttng/lttng-ci.git | |
149 | from: git | |
150 | path: lava/system-tests/perf-tests.yml | |
151 | name: perf-tests | |
6b35e57c JR |
152 | params: |
153 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
154 | {% elif test_type == TestType.kvm_tests %} |
155 | - repository: https://github.com/lttng/lttng-ci.git | |
156 | from: git | |
157 | path: lava/system-tests/kernel-tests.yml | |
158 | name: kernel-tests | |
6b35e57c JR |
159 | params: |
160 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
161 | - repository: https://github.com/lttng/lttng-ci.git |
162 | from: git | |
163 | path: lava/system-tests/destructive-tests.yml | |
164 | name: destructive-tests | |
6b35e57c JR |
165 | params: |
166 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
167 | {% elif test_type == TestType.kvm_fuzzing_tests %} |
168 | - repository: https://github.com/lttng/lttng-ci.git | |
169 | from: git | |
170 | path: lava/system-tests/kprobe-fuzzing-generate-data.yml | |
171 | name: kprobe-fuzzing-generate-data | |
172 | params: | |
173 | RANDOM_SEED: {{ random_seed }} | |
174 | {% for i in range(kprobe_round_nb) %} | |
175 | - repository: https://github.com/lttng/lttng-ci.git | |
176 | from: git | |
177 | path: lava/system-tests/kprobe-fuzzing-tests.yml | |
d68596fd | 178 | name: kprobe-fuzzing-tests{{ i }} |
9665810d JR |
179 | params: |
180 | ROUND_NB: {{ i }} | |
181 | {% endfor %} | |
182 | {% endif %} |