c7ac308a941e682ed6116b7f431ba72d4bab477f
[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 prompts:
57 - 'root@linaro-server:~#'
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
78 - rm -rf /tmp/*
79 {% endif %}
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
101 params:
102 JENKINS_BUILD_ID: {{ jenkins_build_id }}
103 - repository: https://github.com/lttng/lttng-ci.git
104 from: git
105 path: lava/system-tests/failing-ioctl.yml
106 name: failing-ioctl
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-open-efault.yml
112 name: failing-open-efault
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/success-dup-close.yml
118 name: success-dup-close
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/raw-syscall-getpid.yml
124 name: raw-syscall-getpid
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/failing-open-enoent.yml
130 name: failing-open-enoent
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/lttng-test-filter.yml
136 name: lttng-test-filter
137 params:
138 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
144 params:
145 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
151 params:
152 JENKINS_BUILD_ID: {{ jenkins_build_id }}
153 - repository: https://github.com/lttng/lttng-ci.git
154 from: git
155 path: lava/system-tests/destructive-tests.yml
156 name: destructive-tests
157 params:
158 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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 %}
This page took 0.033172 seconds and 4 git commands to generate.