Enable e1000 driver for kernel
[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
JR
9context:
10 # tell the qemu template which architecture is being tested
11 # the template uses that to ensure that qemu-system-x86_64 is executed.
12 {# Used amd64 as a default #}
13 arch: amd64
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
43 os: ubuntu
6b9bcf12 44
9665810d
JR
45 - boot:
46 timeout:
47 minutes: 10
9665810d 48 method: ipxe
d2fdefc4 49 commands: nfs
9665810d
JR
50 prompts:
51 - 'root@linaro-server:~#'
9665810d
JR
52
53 - test:
54 definitions:
55 # Base setup of environment #
56 - repository:
57 metadata:
58 format: Lava-Test Test Definition 1.0
59 name: x86-env-setup
60 description: "Basic environment setup for x86 board"
61 os:
62 - ubuntu
63 devices:
64 - x86
65 run:
66 steps:
67 - cat /etc/resolv.conf
68 - echo nameserver 172.18.0.12 > /etc/resolv.conf
69 - groupadd tracing
70 {% if device_type == DeviceType.x86 %}
71 - mount /dev/sda1 /tmp
72 - rm -rf /tmp/*
73 {% endif %}
74 - depmod -a
75 - locale-gen en_US.UTF-8
76 - apt-get update
77 - apt-get upgrade
78 - apt-get install -y {{ packages|join(" ") }}
79 {% if test_type != TestType.kvm_fuzzing_tests %}
80 - pip3 install --upgrade pip
81 - hash -r
82 - pip3 install vlttng
83 - {{ vlttng_cmd }}
84 - ln -s {{ vlttng_path }} /root/lttngvenv
85 - sync
86 {% endif %}
87 from: inline
88 name: x86-env-setup-inline
89 path: inline/x86-env-setup.yaml
90 {% if test_type == TestType.baremetal_benchmarks %}
91 - repository: https://github.com/lttng/lttng-ci.git
92 from: git
93 path: lava/system-tests/failing-close.yml
94 name: failing-close
95 - repository: https://github.com/lttng/lttng-ci.git
96 from: git
97 path: lava/system-tests/failing-ioctl.yml
98 name: failing-ioctl
99 - repository: https://github.com/lttng/lttng-ci.git
100 from: git
101 path: lava/system-tests/failing-open-efault.yml
102 name: failing-open-efault
103 - repository: https://github.com/lttng/lttng-ci.git
104 from: git
105 path: lava/system-tests/success-dup-close.yml
106 name: success-dup-close
107 - repository: https://github.com/lttng/lttng-ci.git
108 from: git
109 path: lava/system-tests/raw-syscall-getpid.yml
110 name: raw-syscall-getpid
111 - repository: https://github.com/lttng/lttng-ci.git
112 from: git
113 path: lava/system-tests/failing-open-enoent.yml
114 name: failing-open-enoent
115 - repository: https://github.com/lttng/lttng-ci.git
116 from: git
117 path: lava/system-tests/lttng-test-filter.yml
118 name: lttng-test-filter
119 {% elif test_type == TestType.baremetal_tests %}
120 - repository: https://github.com/lttng/lttng-ci.git
121 from: git
122 path: lava/system-tests/perf-tests.yml
123 name: perf-tests
124 {% elif test_type == TestType.kvm_tests %}
125 - repository: https://github.com/lttng/lttng-ci.git
126 from: git
127 path: lava/system-tests/kernel-tests.yml
128 name: kernel-tests
129 - repository: https://github.com/lttng/lttng-ci.git
130 from: git
131 path: lava/system-tests/destructive-tests.yml
132 name: destructive-tests
133 {% elif test_type == TestType.kvm_fuzzing_tests %}
134 - repository: https://github.com/lttng/lttng-ci.git
135 from: git
136 path: lava/system-tests/kprobe-fuzzing-generate-data.yml
137 name: kprobe-fuzzing-generate-data
138 params:
139 RANDOM_SEED: {{ random_seed }}
140 {% for i in range(kprobe_round_nb) %}
141 - repository: https://github.com/lttng/lttng-ci.git
142 from: git
143 path: lava/system-tests/kprobe-fuzzing-tests.yml
144 name: kprobe-fuzzing-tests
145 params:
146 ROUND_NB: {{ i }}
147 {% endfor %}
148 {% endif %}
This page took 0.028767 seconds and 4 git commands to generate.