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