LAVA2: use new rootfs
[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 auto_login:
57 login_prompt: 'login:'
58 username: root
59 password_prompt: 'Password:'
60 password: root
61 prompts:
62 - 'root@linaro-server:~#'
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:
78 - echo nameserver 172.18.0.12 > /etc/resolv.conf
79 - ip a
80 - groupadd tracing
81 {% if device_type == DeviceType.x86 %}
82 - mount /dev/sda1 /tmp
83 - rm -rf /tmp/*
84 {% endif %}
85 - depmod -a
86 - locale-gen en_US.UTF-8
87 - apt-get update
88 - apt-get upgrade
89 {% if test_type != TestType.kvm_fuzzing_tests %}
90 - pip3 install --upgrade pip
91 - hash -r
92 - pip3 install vlttng
93 - {{ vlttng_cmd }}
94 - ln -s {{ vlttng_path }} /root/lttngvenv
95 - sync
96 {% endif %}
97 from: inline
98 name: x86-env-setup-inline
99 path: inline/x86-env-setup.yaml
100 {% if test_type == TestType.baremetal_benchmarks %}
101 - repository: https://github.com/lttng/lttng-ci.git
102 from: git
103 path: lava/system-tests/failing-close.yml
104 name: failing-close
105 params:
106 JENKINS_BUILD_ID: {{ jenkins_build_id }}
107 - repository: https://github.com/lttng/lttng-ci.git
108 from: git
109 path: lava/system-tests/failing-ioctl.yml
110 name: failing-ioctl
111 params:
112 JENKINS_BUILD_ID: {{ jenkins_build_id }}
113 - repository: https://github.com/lttng/lttng-ci.git
114 from: git
115 path: lava/system-tests/failing-open-efault.yml
116 name: failing-open-efault
117 params:
118 JENKINS_BUILD_ID: {{ jenkins_build_id }}
119 - repository: https://github.com/lttng/lttng-ci.git
120 from: git
121 path: lava/system-tests/success-dup-close.yml
122 name: success-dup-close
123 params:
124 JENKINS_BUILD_ID: {{ jenkins_build_id }}
125 - repository: https://github.com/lttng/lttng-ci.git
126 from: git
127 path: lava/system-tests/raw-syscall-getpid.yml
128 name: raw-syscall-getpid
129 params:
130 JENKINS_BUILD_ID: {{ jenkins_build_id }}
131 - repository: https://github.com/lttng/lttng-ci.git
132 from: git
133 path: lava/system-tests/failing-open-enoent.yml
134 name: failing-open-enoent
135 params:
136 JENKINS_BUILD_ID: {{ jenkins_build_id }}
137 - repository: https://github.com/lttng/lttng-ci.git
138 from: git
139 path: lava/system-tests/lttng-test-filter.yml
140 name: lttng-test-filter
141 params:
142 JENKINS_BUILD_ID: {{ jenkins_build_id }}
143 {% elif test_type == TestType.baremetal_tests %}
144 - repository: https://github.com/lttng/lttng-ci.git
145 from: git
146 path: lava/system-tests/perf-tests.yml
147 name: perf-tests
148 params:
149 JENKINS_BUILD_ID: {{ jenkins_build_id }}
150 {% elif test_type == TestType.kvm_tests %}
151 - repository: https://github.com/lttng/lttng-ci.git
152 from: git
153 path: lava/system-tests/kernel-tests.yml
154 name: kernel-tests
155 params:
156 JENKINS_BUILD_ID: {{ jenkins_build_id }}
157 - repository: https://github.com/lttng/lttng-ci.git
158 from: git
159 path: lava/system-tests/destructive-tests.yml
160 name: destructive-tests
161 params:
162 JENKINS_BUILD_ID: {{ jenkins_build_id }}
163 {% elif test_type == TestType.kvm_fuzzing_tests %}
164 - repository: https://github.com/lttng/lttng-ci.git
165 from: git
166 path: lava/system-tests/kprobe-fuzzing-generate-data.yml
167 name: kprobe-fuzzing-generate-data
168 params:
169 RANDOM_SEED: {{ random_seed }}
170 {% for i in range(kprobe_round_nb) %}
171 - repository: https://github.com/lttng/lttng-ci.git
172 from: git
173 path: lava/system-tests/kprobe-fuzzing-tests.yml
174 name: kprobe-fuzzing-tests
175 params:
176 ROUND_NB: {{ i }}
177 {% endfor %}
178 {% endif %}
This page took 0.0364 seconds and 4 git commands to generate.