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