Update lava-server
[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 {% 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
108 params:
109 JENKINS_BUILD_ID: {{ jenkins_build_id }}
110 - repository: https://github.com/lttng/lttng-ci.git
111 from: git
112 path: lava/system-tests/failing-ioctl.yml
113 name: failing-ioctl
114 params:
115 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
120 params:
121 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
126 params:
127 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
132 params:
133 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
138 params:
139 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
144 params:
145 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
151 params:
152 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
158 params:
159 JENKINS_BUILD_ID: {{ jenkins_build_id }}
160 - repository: https://github.com/lttng/lttng-ci.git
161 from: git
162 path: lava/system-tests/destructive-tests.yml
163 name: destructive-tests
164 params:
165 JENKINS_BUILD_ID: {{ jenkins_build_id }}
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
177 name: kprobe-fuzzing-tests{{ i }}
178 params:
179 ROUND_NB: {{ i }}
180 {% endfor %}
181 {% endif %}
This page took 0.03404 seconds and 5 git commands to generate.