LAVA: Use bash as first step to spawn a bash shell
[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"
620516c2 12
4c3d6586
JR
13tags:
14 - qemu
4cb5cc4f
JR
15{% endif %}
16{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
17tags:
18 - dev-sda1
4cb5cc4f 19{% endif %}
6b9bcf12
JR
20
21metadata:
4cb5cc4f
JR
22 jenkins_jobname: {{ job_name }}
23{% if test_type == TestType.kvm_fuzzing_tests %}
6b9bcf12 24 nb_iterations: {{ kprobe_round_nb }}
4cb5cc4f 25{% endif %}
6b9bcf12
JR
26
27
28actions:
9665810d
JR
29 - deploy:
30 timeout:
31 minutes: 10
32 to: tftp
33 kernel:
34 url: {{ kernel_url }}
35 type: zimage
9665810d
JR
36 modules:
37 url: {{ lttng_modules_url }}
9665810d
JR
38 compression: gz
39 nfsrootfs:
40 url: {{ nfsrootfs_url }}
41 compression: gz
42 os: ubuntu
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
JR
71 {% elif device_type == DeviceType.kvm %}
72 - mount /dev/sda /tmp
9665810d 73 {% endif %}
6af14904 74 - rm -rf /tmp/*
9665810d
JR
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.028472 seconds and 4 git commands to generate.