LAVA: Upload results to obj.internal.efficios.com
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
CommitLineData
4c3d6586 1device_type: x86
6b9bcf12
JR
2job_name: {{ job_name }}
3timeouts:
4 job:
5 hours: 2
6priority: medium
7visibility: public
4cb5cc4f 8{% if device_type == DeviceType.kvm %}
6b9bcf12 9context:
620516c2 10 extra_kernel_args: cpuidle.off=1
5a6608da 11 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
c0431a7e 12 lava_test_sh_cmd: "/bin/bash"
620516c2 13
4c3d6586
JR
14tags:
15 - qemu
4cb5cc4f
JR
16{% endif %}
17{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
18tags:
19 - dev-sda1
4cb5cc4f 20{% endif %}
6b9bcf12
JR
21
22metadata:
4cb5cc4f
JR
23 jenkins_jobname: {{ job_name }}
24{% if test_type == TestType.kvm_fuzzing_tests %}
6b9bcf12 25 nb_iterations: {{ kprobe_round_nb }}
4cb5cc4f 26{% endif %}
6b9bcf12
JR
27
28
29actions:
9665810d
JR
30 - deploy:
31 timeout:
32 minutes: 10
33 to: tftp
34 kernel:
35 url: {{ kernel_url }}
36 type: zimage
9665810d
JR
37 modules:
38 url: {{ lttng_modules_url }}
9665810d
JR
39 compression: gz
40 nfsrootfs:
41 url: {{ nfsrootfs_url }}
42 compression: gz
6b9bcf12 43
9665810d
JR
44 - boot:
45 timeout:
46 minutes: 10
9665810d 47 method: ipxe
d2fdefc4 48 commands: nfs
9665810d
JR
49 prompts:
50 - 'root@linaro-server:~#'
9665810d
JR
51
52 - test:
53 definitions:
54 # Base setup of environment #
55 - repository:
56 metadata:
57 format: Lava-Test Test Definition 1.0
58 name: x86-env-setup
59 description: "Basic environment setup for x86 board"
60 os:
61 - ubuntu
62 devices:
63 - x86
64 run:
65 steps:
66 - cat /etc/resolv.conf
67 - echo nameserver 172.18.0.12 > /etc/resolv.conf
68 - groupadd tracing
69 {% if device_type == DeviceType.x86 %}
70 - mount /dev/sda1 /tmp
6af14904 71 - rm -rf /tmp/*
c11ec858 72 {% endif %}
9665810d
JR
73 - depmod -a
74 - locale-gen en_US.UTF-8
75 - apt-get update
76 - apt-get upgrade
77 - apt-get install -y {{ packages|join(" ") }}
78 {% if test_type != TestType.kvm_fuzzing_tests %}
79 - pip3 install --upgrade pip
80 - hash -r
81 - pip3 install vlttng
82 - {{ vlttng_cmd }}
83 - ln -s {{ vlttng_path }} /root/lttngvenv
84 - sync
85 {% endif %}
86 from: inline
87 name: x86-env-setup-inline
88 path: inline/x86-env-setup.yaml
89 {% if test_type == TestType.baremetal_benchmarks %}
90 - repository: https://github.com/lttng/lttng-ci.git
91 from: git
92 path: lava/system-tests/failing-close.yml
93 name: failing-close
6b35e57c
JR
94 params:
95 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
96 - repository: https://github.com/lttng/lttng-ci.git
97 from: git
98 path: lava/system-tests/failing-ioctl.yml
99 name: failing-ioctl
6b35e57c
JR
100 params:
101 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
102 - repository: https://github.com/lttng/lttng-ci.git
103 from: git
104 path: lava/system-tests/failing-open-efault.yml
105 name: failing-open-efault
6b35e57c
JR
106 params:
107 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
108 - repository: https://github.com/lttng/lttng-ci.git
109 from: git
110 path: lava/system-tests/success-dup-close.yml
111 name: success-dup-close
6b35e57c
JR
112 params:
113 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
114 - repository: https://github.com/lttng/lttng-ci.git
115 from: git
116 path: lava/system-tests/raw-syscall-getpid.yml
117 name: raw-syscall-getpid
6b35e57c
JR
118 params:
119 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
120 - repository: https://github.com/lttng/lttng-ci.git
121 from: git
122 path: lava/system-tests/failing-open-enoent.yml
123 name: failing-open-enoent
6b35e57c
JR
124 params:
125 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
126 - repository: https://github.com/lttng/lttng-ci.git
127 from: git
128 path: lava/system-tests/lttng-test-filter.yml
129 name: lttng-test-filter
6b35e57c
JR
130 params:
131 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
132 {% elif test_type == TestType.baremetal_tests %}
133 - repository: https://github.com/lttng/lttng-ci.git
134 from: git
135 path: lava/system-tests/perf-tests.yml
136 name: perf-tests
6b35e57c
JR
137 params:
138 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
139 {% elif test_type == TestType.kvm_tests %}
140 - repository: https://github.com/lttng/lttng-ci.git
141 from: git
142 path: lava/system-tests/kernel-tests.yml
143 name: kernel-tests
6b35e57c
JR
144 params:
145 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
146 - repository: https://github.com/lttng/lttng-ci.git
147 from: git
148 path: lava/system-tests/destructive-tests.yml
149 name: destructive-tests
6b35e57c
JR
150 params:
151 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
152 {% elif test_type == TestType.kvm_fuzzing_tests %}
153 - repository: https://github.com/lttng/lttng-ci.git
154 from: git
155 path: lava/system-tests/kprobe-fuzzing-generate-data.yml
156 name: kprobe-fuzzing-generate-data
157 params:
158 RANDOM_SEED: {{ random_seed }}
159 {% for i in range(kprobe_round_nb) %}
160 - repository: https://github.com/lttng/lttng-ci.git
161 from: git
162 path: lava/system-tests/kprobe-fuzzing-tests.yml
163 name: kprobe-fuzzing-tests
164 params:
165 ROUND_NB: {{ i }}
166 {% endfor %}
167 {% endif %}
This page took 0.029856 seconds and 4 git commands to generate.