Commit | Line | Data |
---|---|---|
6b9bcf12 JR |
1 | device_type: {{ device_type }} |
2 | job_name: {{ job_name }} | |
3 | timeouts: | |
4 | job: | |
5 | hours: 2 | |
6 | priority: medium | |
7 | visibility: public | |
4cb5cc4f | 8 | {% if device_type == DeviceType.kvm %} |
6b9bcf12 JR |
9 | context: |
10 | # tell the qemu template which architecture is being tested | |
11 | # the template uses that to ensure that qemu-system-x86_64 is executed. | |
12 | {# Used amd64 as a default #} | |
13 | arch: amd64 | |
4cb5cc4f JR |
14 | {% endif %} |
15 | {% if device_type == DeviceType.x86 %} | |
6b9bcf12 JR |
16 | tags: |
17 | - dev-sda1 | |
4cb5cc4f | 18 | {% endif %} |
6b9bcf12 JR |
19 | |
20 | metadata: | |
4cb5cc4f JR |
21 | jenkins_jobname: {{ job_name }} |
22 | {% if test_type == TestType.kvm_fuzzing_tests %} | |
6b9bcf12 | 23 | nb_iterations: {{ kprobe_round_nb }} |
4cb5cc4f | 24 | {% endif %} |
6b9bcf12 JR |
25 | |
26 | ||
27 | actions: | |
9665810d JR |
28 | - deploy: |
29 | timeout: | |
30 | minutes: 10 | |
31 | to: tftp | |
32 | kernel: | |
33 | url: {{ kernel_url }} | |
34 | type: zimage | |
35 | modules: | |
36 | url: {{ linux_modules_url }} | |
37 | archive: tar | |
38 | compression: gz | |
39 | modules: | |
40 | url: {{ lttng_modules_url }} | |
41 | archive: tar | |
42 | compression: gz | |
43 | nfsrootfs: | |
44 | url: {{ nfsrootfs_url }} | |
45 | compression: gz | |
46 | os: ubuntu | |
6b9bcf12 | 47 | |
9665810d JR |
48 | - boot: |
49 | timeout: | |
50 | minutes: 10 | |
51 | {% if device_type == DeviceType.x86 %} | |
52 | method: ipxe | |
53 | commands: ramdisk | |
54 | prompts: | |
55 | - 'root@linaro-server:~#' | |
56 | {% elif device_type == DeviceType.kvm %} | |
57 | method: qemu-nfs | |
58 | media: nfs | |
59 | auto_login: | |
60 | login_prompt: "kvm02 login:" | |
61 | username: root | |
62 | prompts: | |
63 | - 'linaro-test' | |
4cb5cc4f | 64 | {% endif %} |
9665810d JR |
65 | |
66 | - test: | |
67 | definitions: | |
68 | # Base setup of environment # | |
69 | - repository: | |
70 | metadata: | |
71 | format: Lava-Test Test Definition 1.0 | |
72 | name: x86-env-setup | |
73 | description: "Basic environment setup for x86 board" | |
74 | os: | |
75 | - ubuntu | |
76 | devices: | |
77 | - x86 | |
78 | run: | |
79 | steps: | |
80 | - cat /etc/resolv.conf | |
81 | - echo nameserver 172.18.0.12 > /etc/resolv.conf | |
82 | - groupadd tracing | |
83 | {% if device_type == DeviceType.x86 %} | |
84 | - mount /dev/sda1 /tmp | |
85 | - rm -rf /tmp/* | |
86 | {% endif %} | |
87 | - depmod -a | |
88 | - locale-gen en_US.UTF-8 | |
89 | - apt-get update | |
90 | - apt-get upgrade | |
91 | - apt-get install -y {{ packages|join(" ") }} | |
92 | {% if test_type != TestType.kvm_fuzzing_tests %} | |
93 | - pip3 install --upgrade pip | |
94 | - hash -r | |
95 | - pip3 install vlttng | |
96 | - {{ vlttng_cmd }} | |
97 | - ln -s {{ vlttng_path }} /root/lttngvenv | |
98 | - sync | |
99 | {% endif %} | |
100 | from: inline | |
101 | name: x86-env-setup-inline | |
102 | path: inline/x86-env-setup.yaml | |
103 | {% if test_type == TestType.baremetal_benchmarks %} | |
104 | - repository: https://github.com/lttng/lttng-ci.git | |
105 | from: git | |
106 | path: lava/system-tests/failing-close.yml | |
107 | name: failing-close | |
108 | - repository: https://github.com/lttng/lttng-ci.git | |
109 | from: git | |
110 | path: lava/system-tests/failing-ioctl.yml | |
111 | name: failing-ioctl | |
112 | - repository: https://github.com/lttng/lttng-ci.git | |
113 | from: git | |
114 | path: lava/system-tests/failing-open-efault.yml | |
115 | name: failing-open-efault | |
116 | - repository: https://github.com/lttng/lttng-ci.git | |
117 | from: git | |
118 | path: lava/system-tests/success-dup-close.yml | |
119 | name: success-dup-close | |
120 | - repository: https://github.com/lttng/lttng-ci.git | |
121 | from: git | |
122 | path: lava/system-tests/raw-syscall-getpid.yml | |
123 | name: raw-syscall-getpid | |
124 | - repository: https://github.com/lttng/lttng-ci.git | |
125 | from: git | |
126 | path: lava/system-tests/failing-open-enoent.yml | |
127 | name: failing-open-enoent | |
128 | - repository: https://github.com/lttng/lttng-ci.git | |
129 | from: git | |
130 | path: lava/system-tests/lttng-test-filter.yml | |
131 | name: lttng-test-filter | |
132 | {% elif test_type == TestType.baremetal_tests %} | |
133 | - repository: https://github.com/lttng/lttng-ci.git | |
134 | from: git | |
135 | path: lava/system-tests/perf-tests.yml | |
136 | name: perf-tests | |
137 | {% elif test_type == TestType.kvm_tests %} | |
138 | - repository: https://github.com/lttng/lttng-ci.git | |
139 | from: git | |
140 | path: lava/system-tests/kernel-tests.yml | |
141 | name: kernel-tests | |
142 | - repository: https://github.com/lttng/lttng-ci.git | |
143 | from: git | |
144 | path: lava/system-tests/destructive-tests.yml | |
145 | name: destructive-tests | |
146 | {% elif test_type == TestType.kvm_fuzzing_tests %} | |
147 | - repository: https://github.com/lttng/lttng-ci.git | |
148 | from: git | |
149 | path: lava/system-tests/kprobe-fuzzing-generate-data.yml | |
150 | name: kprobe-fuzzing-generate-data | |
151 | params: | |
152 | RANDOM_SEED: {{ random_seed }} | |
153 | {% for i in range(kprobe_round_nb) %} | |
154 | - repository: https://github.com/lttng/lttng-ci.git | |
155 | from: git | |
156 | path: lava/system-tests/kprobe-fuzzing-tests.yml | |
157 | name: kprobe-fuzzing-tests | |
158 | params: | |
159 | ROUND_NB: {{ i }} | |
160 | {% endfor %} | |
161 | {% endif %} |