Commit | Line | Data |
---|---|---|
4c3d6586 | 1 | device_type: x86 |
6b9bcf12 JR |
2 | job_name: {{ job_name }} |
3 | timeouts: | |
4 | job: | |
5 | hours: 2 | |
33f6fe56 JR |
6 | action: |
7 | hours: 2 | |
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 |
9665810d JR |
56 | prompts: |
57 | - 'root@linaro-server:~#' | |
9665810d JR |
58 | |
59 | - test: | |
60 | definitions: | |
61 | # Base setup of environment # | |
62 | - repository: | |
63 | metadata: | |
64 | format: Lava-Test Test Definition 1.0 | |
65 | name: x86-env-setup | |
66 | description: "Basic environment setup for x86 board" | |
67 | os: | |
68 | - ubuntu | |
69 | devices: | |
70 | - x86 | |
71 | run: | |
72 | steps: | |
73 | - cat /etc/resolv.conf | |
74 | - echo nameserver 172.18.0.12 > /etc/resolv.conf | |
75 | - groupadd tracing | |
76 | {% if device_type == DeviceType.x86 %} | |
77 | - mount /dev/sda1 /tmp | |
6af14904 | 78 | - rm -rf /tmp/* |
c11ec858 | 79 | {% endif %} |
9665810d JR |
80 | - depmod -a |
81 | - locale-gen en_US.UTF-8 | |
82 | - apt-get update | |
83 | - apt-get upgrade | |
84 | - apt-get install -y {{ packages|join(" ") }} | |
85 | {% if test_type != TestType.kvm_fuzzing_tests %} | |
86 | - pip3 install --upgrade pip | |
87 | - hash -r | |
88 | - pip3 install vlttng | |
89 | - {{ vlttng_cmd }} | |
90 | - ln -s {{ vlttng_path }} /root/lttngvenv | |
91 | - sync | |
92 | {% endif %} | |
93 | from: inline | |
94 | name: x86-env-setup-inline | |
95 | path: inline/x86-env-setup.yaml | |
96 | {% if test_type == TestType.baremetal_benchmarks %} | |
97 | - repository: https://github.com/lttng/lttng-ci.git | |
98 | from: git | |
99 | path: lava/system-tests/failing-close.yml | |
100 | name: failing-close | |
6b35e57c JR |
101 | params: |
102 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
103 | - repository: https://github.com/lttng/lttng-ci.git |
104 | from: git | |
105 | path: lava/system-tests/failing-ioctl.yml | |
106 | name: failing-ioctl | |
6b35e57c JR |
107 | params: |
108 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
109 | - repository: https://github.com/lttng/lttng-ci.git |
110 | from: git | |
111 | path: lava/system-tests/failing-open-efault.yml | |
112 | name: failing-open-efault | |
6b35e57c JR |
113 | params: |
114 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
115 | - repository: https://github.com/lttng/lttng-ci.git |
116 | from: git | |
117 | path: lava/system-tests/success-dup-close.yml | |
118 | name: success-dup-close | |
6b35e57c JR |
119 | params: |
120 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
121 | - repository: https://github.com/lttng/lttng-ci.git |
122 | from: git | |
123 | path: lava/system-tests/raw-syscall-getpid.yml | |
124 | name: raw-syscall-getpid | |
6b35e57c JR |
125 | params: |
126 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
127 | - repository: https://github.com/lttng/lttng-ci.git |
128 | from: git | |
129 | path: lava/system-tests/failing-open-enoent.yml | |
130 | name: failing-open-enoent | |
6b35e57c JR |
131 | params: |
132 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
133 | - repository: https://github.com/lttng/lttng-ci.git |
134 | from: git | |
135 | path: lava/system-tests/lttng-test-filter.yml | |
136 | name: lttng-test-filter | |
6b35e57c JR |
137 | params: |
138 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
139 | {% elif test_type == TestType.baremetal_tests %} |
140 | - repository: https://github.com/lttng/lttng-ci.git | |
141 | from: git | |
142 | path: lava/system-tests/perf-tests.yml | |
143 | name: perf-tests | |
6b35e57c JR |
144 | params: |
145 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
146 | {% elif test_type == TestType.kvm_tests %} |
147 | - repository: https://github.com/lttng/lttng-ci.git | |
148 | from: git | |
149 | path: lava/system-tests/kernel-tests.yml | |
150 | name: kernel-tests | |
6b35e57c JR |
151 | params: |
152 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
153 | - repository: https://github.com/lttng/lttng-ci.git |
154 | from: git | |
155 | path: lava/system-tests/destructive-tests.yml | |
156 | name: destructive-tests | |
6b35e57c JR |
157 | params: |
158 | JENKINS_BUILD_ID: {{ jenkins_build_id }} | |
9665810d JR |
159 | {% elif test_type == TestType.kvm_fuzzing_tests %} |
160 | - repository: https://github.com/lttng/lttng-ci.git | |
161 | from: git | |
162 | path: lava/system-tests/kprobe-fuzzing-generate-data.yml | |
163 | name: kprobe-fuzzing-generate-data | |
164 | params: | |
165 | RANDOM_SEED: {{ random_seed }} | |
166 | {% for i in range(kprobe_round_nb) %} | |
167 | - repository: https://github.com/lttng/lttng-ci.git | |
168 | from: git | |
169 | path: lava/system-tests/kprobe-fuzzing-tests.yml | |
170 | name: kprobe-fuzzing-tests | |
171 | params: | |
172 | ROUND_NB: {{ i }} | |
173 | {% endfor %} | |
174 | {% endif %} |