Revert "LAVA: Use bash as first step to spawn a bash shell"
[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 extra_kernel_args: cpuidle.off=1
11 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
12
13 tags:
14 - qemu
15 {% endif %}
16 {% if device_type == DeviceType.x86 %}
17 tags:
18 - dev-sda1
19 {% endif %}
20
21 metadata:
22 jenkins_jobname: {{ job_name }}
23 {% if test_type == TestType.kvm_fuzzing_tests %}
24 nb_iterations: {{ kprobe_round_nb }}
25 {% endif %}
26
27
28 actions:
29 - deploy:
30 timeout:
31 minutes: 10
32 to: tftp
33 kernel:
34 url: {{ kernel_url }}
35 type: zimage
36 modules:
37 url: {{ lttng_modules_url }}
38 compression: gz
39 nfsrootfs:
40 url: {{ nfsrootfs_url }}
41 compression: gz
42 os: ubuntu
43
44 - boot:
45 timeout:
46 minutes: 10
47 method: ipxe
48 commands: nfs
49 prompts:
50 - 'root@linaro-server:~#'
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
71 - rm -rf /tmp/*
72 {% endif %}
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
94 - repository: https://github.com/lttng/lttng-ci.git
95 from: git
96 path: lava/system-tests/failing-ioctl.yml
97 name: failing-ioctl
98 - repository: https://github.com/lttng/lttng-ci.git
99 from: git
100 path: lava/system-tests/failing-open-efault.yml
101 name: failing-open-efault
102 - repository: https://github.com/lttng/lttng-ci.git
103 from: git
104 path: lava/system-tests/success-dup-close.yml
105 name: success-dup-close
106 - repository: https://github.com/lttng/lttng-ci.git
107 from: git
108 path: lava/system-tests/raw-syscall-getpid.yml
109 name: raw-syscall-getpid
110 - repository: https://github.com/lttng/lttng-ci.git
111 from: git
112 path: lava/system-tests/failing-open-enoent.yml
113 name: failing-open-enoent
114 - repository: https://github.com/lttng/lttng-ci.git
115 from: git
116 path: lava/system-tests/lttng-test-filter.yml
117 name: lttng-test-filter
118 {% elif test_type == TestType.baremetal_tests %}
119 - repository: https://github.com/lttng/lttng-ci.git
120 from: git
121 path: lava/system-tests/perf-tests.yml
122 name: perf-tests
123 {% elif test_type == TestType.kvm_tests %}
124 - repository: https://github.com/lttng/lttng-ci.git
125 from: git
126 path: lava/system-tests/kernel-tests.yml
127 name: kernel-tests
128 - repository: https://github.com/lttng/lttng-ci.git
129 from: git
130 path: lava/system-tests/destructive-tests.yml
131 name: destructive-tests
132 {% elif test_type == TestType.kvm_fuzzing_tests %}
133 - repository: https://github.com/lttng/lttng-ci.git
134 from: git
135 path: lava/system-tests/kprobe-fuzzing-generate-data.yml
136 name: kprobe-fuzzing-generate-data
137 params:
138 RANDOM_SEED: {{ random_seed }}
139 {% for i in range(kprobe_round_nb) %}
140 - repository: https://github.com/lttng/lttng-ci.git
141 from: git
142 path: lava/system-tests/kprobe-fuzzing-tests.yml
143 name: kprobe-fuzzing-tests
144 params:
145 ROUND_NB: {{ i }}
146 {% endfor %}
147 {% endif %}
This page took 0.036963 seconds and 4 git commands to generate.