b6080066763cc7f18de914019aa6a89cbf57f779
[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 {% 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: vlttng-env-setup
72 description: "Configure virtualenv for vlttng"
73 os:
74 - ubuntu
75 devices:
76 - x86
77 - kvm
78 run:
79 steps:
80 {% if device_type == DeviceType.x86 %}
81 - mount /dev/sda1 /tmp
82 {% elif device_type == DeviceType.kvm %}
83 - mount /dev/sda /tmp
84 {% endif %}
85 - rm -rf /tmp/*
86 - {{ vlttng_cmd }}
87 - ln -s {{ vlttng_path }} /root/lttngvenv
88 - sync
89 from: inline
90 name: vlttng-env-setup-inline
91 path: inline/vlttng-env-setup
92 {% if test_type == TestType.baremetal_tests %}
93 - repository: https://github.com/lttng/lttng-ci.git
94 from: git
95 path: lava/system-tests/perf-tests.yml
96 name: perf-tests
97 params:
98 LTTNG_VERSION_STRING: {{ lttng_version_string }}
99 JENKINS_BUILD_ID: {{ jenkins_build_id }}
100 {% elif test_type == TestType.kvm_tests %}
101 - repository: https://github.com/lttng/lttng-ci.git
102 from: git
103 path: lava/system-tests/kernel-tests.yml
104 name: kernel-tests
105 params:
106 LTTNG_VERSION_STRING: {{ lttng_version_string }}
107 JENKINS_BUILD_ID: {{ jenkins_build_id }}
108 - repository: https://github.com/lttng/lttng-ci.git
109 from: git
110 path: lava/system-tests/destructive-tests.yml
111 name: destructive-tests
112 params:
113 LTTNG_VERSION_STRING: {{ lttng_version_string }}
114 JENKINS_BUILD_ID: {{ jenkins_build_id }}
115 {% endif %}
This page took 0.032548 seconds and 3 git commands to generate.