jjb/lava: Parametrize URL for system-test's root FS
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
CommitLineData
4c3d6586 1device_type: x86
6b9bcf12
JR
2job_name: {{ job_name }}
3timeouts:
4 job:
afd608b2 5 hours: 5
33f6fe56 6 action:
afd608b2 7 hours: 5
33f6fe56
JR
8 connection:
9 minutes: 4
10 connections:
11 lava-test-shell:
12 minutes: 4
6b9bcf12
JR
13priority: medium
14visibility: public
6b9bcf12 15context:
620516c2 16 extra_kernel_args: cpuidle.off=1
5a6608da 17 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
620516c2 18
e8ca2f76 19{% if device_type == DeviceType.kvm %}
4c3d6586
JR
20tags:
21 - qemu
4cb5cc4f
JR
22{% endif %}
23{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
24tags:
25 - dev-sda1
4cb5cc4f 26{% endif %}
6b9bcf12
JR
27
28metadata:
4cb5cc4f 29 jenkins_jobname: {{ job_name }}
6b9bcf12
JR
30
31
32actions:
9665810d
JR
33 - deploy:
34 timeout:
35 minutes: 10
36 to: tftp
37 kernel:
38 url: {{ kernel_url }}
39 type: zimage
9665810d
JR
40 modules:
41 url: {{ lttng_modules_url }}
9665810d
JR
42 compression: gz
43 nfsrootfs:
44 url: {{ nfsrootfs_url }}
45 compression: gz
6b9bcf12 46
9665810d
JR
47 - boot:
48 timeout:
49 minutes: 10
9665810d 50 method: ipxe
d2fdefc4 51 commands: nfs
ca08dcdf
JR
52 auto_login:
53 login_prompt: 'login:'
54 username: root
55 password_prompt: 'Password:'
56 password: root
9665810d
JR
57 prompts:
58 - 'root@linaro-server:~#'
9665810d
JR
59
60 - test:
61 definitions:
9151e32e
JR
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 #
9665810d
JR
68 - repository:
69 metadata:
70 format: Lava-Test Test Definition 1.0
67aaab3c
KS
71 name: vlttng-env-setup
72 description: "Configure virtualenv for vlttng"
9665810d
JR
73 os:
74 - ubuntu
75 devices:
76 - x86
67aaab3c 77 - kvm
9665810d
JR
78 run:
79 steps:
9665810d
JR
80 {% if device_type == DeviceType.x86 %}
81 - mount /dev/sda1 /tmp
e640b6d8
JR
82 {% elif device_type == DeviceType.kvm %}
83 - mount /dev/sda /tmp
c11ec858 84 {% endif %}
e640b6d8 85 - rm -rf /tmp/*
9665810d
JR
86 - {{ vlttng_cmd }}
87 - ln -s {{ vlttng_path }} /root/lttngvenv
88 - sync
9665810d 89 from: inline
448803d6 90 name: vlttng-env-setup-inline
67aaab3c 91 path: inline/vlttng-env-setup
523e784d 92 {% if test_type == TestType.baremetal_tests %}
9665810d
JR
93 - repository: https://github.com/lttng/lttng-ci.git
94 from: git
95 path: lava/system-tests/perf-tests.yml
96 name: perf-tests
6b35e57c 97 params:
cf1271bb 98 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 99 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
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
6b35e57c 105 params:
cf1271bb 106 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 107 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d
JR
108 - repository: https://github.com/lttng/lttng-ci.git
109 from: git
110 path: lava/system-tests/destructive-tests.yml
111 name: destructive-tests
6b35e57c 112 params:
cf1271bb 113 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 114 JENKINS_BUILD_ID: {{ jenkins_build_id }}
9665810d 115 {% endif %}
This page took 0.031738 seconds and 4 git commands to generate.