865cf1a6b579676d402b16492cfd079d68b7f482
[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 - ubuntu
82 devices:
83 - x86
84 - kvm
85 run:
86 steps:
87 {% if device_type == DeviceType.x86 %}
88 - mount /dev/sda1 /tmp
89 {% elif device_type == DeviceType.kvm %}
90 - mount /dev/sda /tmp
91 {% endif %}
92 - rm -rf /tmp/*
93 - {{ vlttng_cmd }}
94 - ln -s {{ vlttng_path }} /root/lttngvenv
95 - sync
96 from: inline
97 name: vlttng-env-setup-inline
98 path: inline/vlttng-env-setup
99 {% if test_type == TestType.baremetal_tests %}
100 - repository: {{ ci_repo }}
101 from: git
102 branch: {{ ci_branch }}
103 path: lava/system-tests/perf-tests.yml
104 name: perf-tests
105 params:
106 LTTNG_VERSION_STRING: {{ lttng_version_string }}
107 JENKINS_BUILD_ID: {{ jenkins_build_id }}
108 CI_REPO: {{ ci_repo }}
109 CI_BRANCH: {{ ci_branch }}
110 {% elif test_type == TestType.kvm_tests %}
111 - repository: {{ ci_repo }}
112 from: git
113 branch: {{ ci_branch }}
114 path: lava/system-tests/kernel-tests.yml
115 name: kernel-tests
116 params:
117 LTTNG_VERSION_STRING: {{ lttng_version_string }}
118 JENKINS_BUILD_ID: {{ jenkins_build_id }}
119 CI_REPO: {{ ci_repo }}
120 CI_BRANCH: {{ ci_branch }}
121 {% endif %}
122 - repository: {{ ci_repo }}
123 from: git
124 branch: {{ ci_branch }}
125 path: lava/system-tests/upload-artifacts.yml
126 name: upload-artifacts
127 params:
128 LTTNG_VERSION_STRING: {{ lttng_version_string }}
129 JENKINS_BUILD_ID: {{ jenkins_build_id }}
130 CI_REPO: {{ ci_repo }}
131 CI_BRANCH: {{ ci_branch }}
This page took 0.032461 seconds and 3 git commands to generate.