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