system-tests: improve lava slave ssh capability
[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: 3
6 action:
7 hours: 3
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 {% if device_type == DeviceType.kvm %}
20 tags:
21 - qemu
22 {% endif %}
23 {% if device_type == DeviceType.x86 %}
24 tags:
25 - dev-sda1
26 {% endif %}
27
28 metadata:
29 jenkins_jobname: {{ job_name }}
30
31
32 actions:
33 - deploy:
34 timeout:
35 minutes: 10
36 to: tftp
37 kernel:
38 url: {{ kernel_url }}
39 type: zimage
40 modules:
41 url: {{ lttng_modules_url }}
42 compression: gz
43 nfsrootfs:
44 url: {{ nfsrootfs_url }}
45 compression: gz
46
47 - boot:
48 timeout:
49 minutes: 10
50 method: ipxe
51 commands: nfs
52 auto_login:
53 login_prompt: 'login:'
54 username: root
55 password_prompt: 'Password:'
56 password: root
57 prompts:
58 - 'root@linaro-server:~#'
59
60 - test:
61 definitions:
62 # Base setup #
63 - repository: https://github.com/lttng/lttng-ci.git
64 from: git
65 path: lava/system-tests/setup.yml
66 name: x86-env-setup
67 # Base vlttng setup #
68 - repository:
69 metadata:
70 format: Lava-Test Test Definition 1.0
71 name: x86-env-setup
72 description: "Basic environment setup for x86 board"
73 os:
74 - ubuntu
75 devices:
76 - x86
77 run:
78 steps:
79 {% if device_type == DeviceType.x86 %}
80 - mount /dev/sda1 /tmp
81 {% elif device_type == DeviceType.kvm %}
82 - mount /dev/sda /tmp
83 {% endif %}
84 - rm -rf /tmp/*
85 - {{ vlttng_cmd }}
86 - ln -s {{ vlttng_path }} /root/lttngvenv
87 - sync
88 from: inline
89 name:vlttng-env-setup-inline
90 path: inline/x86-env-setup.yaml
91 {% if test_type == TestType.baremetal_tests %}
92 - repository: https://github.com/lttng/lttng-ci.git
93 from: git
94 path: lava/system-tests/perf-tests.yml
95 name: perf-tests
96 params:
97 LTTNG_VERSION_STRING: {{ lttng_version_string }}
98 JENKINS_BUILD_ID: {{ jenkins_build_id }}
99 {% elif test_type == TestType.kvm_tests %}
100 - repository: https://github.com/lttng/lttng-ci.git
101 from: git
102 path: lava/system-tests/kernel-tests.yml
103 name: kernel-tests
104 params:
105 LTTNG_VERSION_STRING: {{ lttng_version_string }}
106 JENKINS_BUILD_ID: {{ jenkins_build_id }}
107 - repository: https://github.com/lttng/lttng-ci.git
108 from: git
109 path: lava/system-tests/destructive-tests.yml
110 name: destructive-tests
111 params:
112 LTTNG_VERSION_STRING: {{ lttng_version_string }}
113 JENKINS_BUILD_ID: {{ jenkins_build_id }}
114 {% endif %}
This page took 0.033102 seconds and 4 git commands to generate.