jjb/lava: Update system tests to use Debian bookworm rootfs
[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: 5
6 action:
7 hours: 5
8 connection:
9 minutes: 4
10 connections:
11 lava-test-shell:
12 minutes: 4
13 priority: medium
14 visibility: public
15 context:
16 extra_kernel_args: cpuidle.off=1
17 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
18
19 environment:
20 SHELL: "/bin/bash"
21
22 {% if device_type == DeviceType.kvm %}
23 tags:
24 - qemu
25 {% endif %}
26 {% if device_type == DeviceType.x86 %}
27 tags:
28 - dev-sda1
29 {% endif %}
30
31 metadata:
32 jenkins_jobname: {{ job_name }}
33
34
35 actions:
36 - deploy:
37 timeout:
38 minutes: 10
39 to: tftp
40 kernel:
41 url: {{ kernel_url }}
42 type: zimage
43 modules:
44 url: {{ lttng_modules_url }}
45 compression: gz
46 nfsrootfs:
47 url: {{ nfsrootfs_url }}
48 compression: gz
49
50 - boot:
51 timeout:
52 minutes: 10
53 method: ipxe
54 commands: nfs
55 auto_login:
56 login_prompt: 'login:'
57 username: root
58 password_prompt: 'Password:'
59 password: root
60 prompts:
61 - 'root@linaro-server:~#'
62
63 - test:
64 definitions:
65 # Base setup #
66 - repository: {{ ci_repo }}
67 from: git
68 branch: {{ ci_branch }}
69 path: lava/system-tests/setup.yml
70 name: x86-env-setup
71 params:
72 CI_REPO: {{ ci_repo }}
73 CI_BRANCH: {{ ci_branch }}
74 # Base vlttng setup #
75 - repository:
76 metadata:
77 format: Lava-Test Test Definition 1.0
78 name: vlttng-env-setup
79 description: "Configure virtualenv for vlttng"
80 os:
81 - debian
82 - ubuntu
83 devices:
84 - x86
85 - kvm
86 run:
87 steps:
88 {% if device_type == DeviceType.x86 %}
89 - mount /dev/sda1 /tmp
90 {% elif device_type == DeviceType.kvm %}
91 - mount /dev/sda /tmp
92 {% endif %}
93 - rm -rf /tmp/*
94 - {{ vlttng_cmd }}
95 - ln -s {{ vlttng_path }} /root/lttngvenv
96 - sync
97 from: inline
98 name: vlttng-env-setup-inline
99 path: inline/vlttng-env-setup
100 {% if test_type == TestType.baremetal_tests %}
101 - repository: {{ ci_repo }}
102 from: git
103 branch: {{ ci_branch }}
104 path: lava/system-tests/perf-tests.yml
105 name: perf-tests
106 params:
107 LTTNG_VERSION_STRING: {{ lttng_version_string }}
108 JENKINS_BUILD_ID: {{ jenkins_build_id }}
109 CI_REPO: {{ ci_repo }}
110 CI_BRANCH: {{ ci_branch }}
111 {% elif test_type == TestType.kvm_tests %}
112 - repository: {{ ci_repo }}
113 from: git
114 branch: {{ ci_branch }}
115 path: lava/system-tests/kernel-tests.yml
116 name: kernel-tests
117 params:
118 LTTNG_VERSION_STRING: {{ lttng_version_string }}
119 JENKINS_BUILD_ID: {{ jenkins_build_id }}
120 CI_REPO: {{ ci_repo }}
121 CI_BRANCH: {{ ci_branch }}
122 {% endif %}
123 - repository: {{ ci_repo }}
124 from: git
125 branch: {{ ci_branch }}
126 path: lava/system-tests/upload-artifacts.yml
127 name: upload-artifacts
128 params:
129 LTTNG_VERSION_STRING: {{ lttng_version_string }}
130 JENKINS_BUILD_ID: {{ jenkins_build_id }}
131 CI_REPO: {{ ci_repo }}
132 CI_BRANCH: {{ ci_branch }}
This page took 0.032965 seconds and 5 git commands to generate.