jjb/lava: Parameterize repo URL and branch for test scripts
[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 62 # Base setup #
ef50ca2a 63 - repository: {{ ci_repo }}
9151e32e 64 from: git
ef50ca2a 65 branch: {{ ci_branch }}
9151e32e
JR
66 path: lava/system-tests/setup.yml
67 name: x86-env-setup
ef50ca2a
KS
68 params:
69 CI_REPO: {{ ci_repo }}
70 CI_BRANCH: {{ ci_branch }}
9151e32e 71 # Base vlttng setup #
9665810d
JR
72 - repository:
73 metadata:
74 format: Lava-Test Test Definition 1.0
67aaab3c
KS
75 name: vlttng-env-setup
76 description: "Configure virtualenv for vlttng"
9665810d
JR
77 os:
78 - ubuntu
79 devices:
80 - x86
67aaab3c 81 - kvm
9665810d
JR
82 run:
83 steps:
9665810d
JR
84 {% if device_type == DeviceType.x86 %}
85 - mount /dev/sda1 /tmp
e640b6d8
JR
86 {% elif device_type == DeviceType.kvm %}
87 - mount /dev/sda /tmp
c11ec858 88 {% endif %}
e640b6d8 89 - rm -rf /tmp/*
9665810d
JR
90 - {{ vlttng_cmd }}
91 - ln -s {{ vlttng_path }} /root/lttngvenv
92 - sync
9665810d 93 from: inline
448803d6 94 name: vlttng-env-setup-inline
67aaab3c 95 path: inline/vlttng-env-setup
523e784d 96 {% if test_type == TestType.baremetal_tests %}
ef50ca2a 97 - repository: {{ ci_repo }}
9665810d 98 from: git
ef50ca2a 99 branch: {{ ci_branch }}
9665810d
JR
100 path: lava/system-tests/perf-tests.yml
101 name: perf-tests
6b35e57c 102 params:
cf1271bb 103 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 104 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
105 CI_REPO: {{ ci_repo }}
106 CI_BRANCH: {{ ci_branch }}
9665810d 107 {% elif test_type == TestType.kvm_tests %}
ef50ca2a 108 - repository: {{ ci_repo }}
9665810d 109 from: git
ef50ca2a 110 branch: {{ ci_branch }}
9665810d
JR
111 path: lava/system-tests/kernel-tests.yml
112 name: kernel-tests
6b35e57c 113 params:
cf1271bb 114 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 115 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
116 CI_REPO: {{ ci_repo }}
117 CI_BRANCH: {{ ci_branch }}
118 - repository: {{ ci_repo }}
9665810d 119 from: git
ef50ca2a 120 branch: {{ ci_branch }}
9665810d
JR
121 path: lava/system-tests/destructive-tests.yml
122 name: destructive-tests
6b35e57c 123 params:
cf1271bb 124 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 125 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
126 CI_REPO: {{ ci_repo }}
127 CI_BRANCH: {{ ci_branch }}
9665810d 128 {% endif %}
This page took 0.034396 seconds and 4 git commands to generate.