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