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