Fix: remove unnecessary '"'
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
CommitLineData
4c3d6586 1device_type: x86
6b9bcf12
JR
2job_name: {{ job_name }}
3timeouts:
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
13priority: medium
14visibility: public
6b9bcf12 15context:
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
21tags:
22 - qemu
4cb5cc4f
JR
23{% endif %}
24{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
25tags:
26 - dev-sda1
4cb5cc4f 27{% endif %}
6b9bcf12
JR
28
29metadata:
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
36actions:
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:
9665810d 78 - echo nameserver 172.18.0.12 > /etc/resolv.conf
ca08dcdf 79 - ip a
9665810d
JR
80 - groupadd tracing
81 {% if device_type == DeviceType.x86 %}
82 - mount /dev/sda1 /tmp
e640b6d8
JR
83 {% elif device_type == DeviceType.kvm %}
84 - mount /dev/sda /tmp
c11ec858 85 {% endif %}
e640b6d8 86 - rm -rf /tmp/*
9665810d
JR
87 - depmod -a
88 - locale-gen en_US.UTF-8
89 - apt-get update
90 - apt-get upgrade
9665810d
JR
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
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-ioctl.yml
112 name: failing-ioctl
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/failing-open-efault.yml
118 name: failing-open-efault
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/success-dup-close.yml
124 name: success-dup-close
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/raw-syscall-getpid.yml
130 name: raw-syscall-getpid
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/failing-open-enoent.yml
136 name: failing-open-enoent
6b35e57c
JR
137 params:
138 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
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
6b35e57c
JR
143 params:
144 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
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
6b35e57c
JR
150 params:
151 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
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
6b35e57c
JR
157 params:
158 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
159 - repository: https://github.com/lttng/lttng-ci.git
160 from: git
161 path: lava/system-tests/destructive-tests.yml
162 name: destructive-tests
6b35e57c
JR
163 params:
164 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
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.030281 seconds and 4 git commands to generate.