Commit | Line | Data |
---|---|---|
4c3d6586 | 1 | device_type: x86 |
6b9bcf12 JR |
2 | job_name: {{ job_name }} |
3 | timeouts: | |
4 | job: | |
8086ddb3 | 5 | hours: 3 |
33f6fe56 | 6 | action: |
8086ddb3 | 7 | hours: 3 |
33f6fe56 JR |
8 | connection: |
9 | minutes: 4 | |
10 | connections: | |
11 | lava-test-shell: | |
12 | minutes: 4 | |
6b9bcf12 JR |
13 | priority: medium |
14 | visibility: public | |
6b9bcf12 | 15 | context: |
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 |
20 | tags: |
21 | - qemu | |
4cb5cc4f JR |
22 | {% endif %} |
23 | {% if device_type == DeviceType.x86 %} | |
6b9bcf12 JR |
24 | tags: |
25 | - dev-sda1 | |
4cb5cc4f | 26 | {% endif %} |
6b9bcf12 JR |
27 | |
28 | metadata: | |
4cb5cc4f | 29 | jenkins_jobname: {{ job_name }} |
6b9bcf12 JR |
30 | |
31 | ||
32 | actions: | |
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: | |
62 | # Base setup of environment # | |
63 | - repository: | |
64 | metadata: | |
65 | format: Lava-Test Test Definition 1.0 | |
66 | name: x86-env-setup | |
67 | description: "Basic environment setup for x86 board" | |
68 | os: | |
69 | - ubuntu | |
70 | devices: | |
71 | - x86 | |
72 | run: | |
73 | steps: | |
1bc2b3de JR |
74 | - chmod 755 / |
75 | - systemctl start systemd-timesyncd | |
9665810d | 76 | - echo nameserver 172.18.0.12 > /etc/resolv.conf |
ca08dcdf | 77 | - ip a |
9665810d JR |
78 | - groupadd tracing |
79 | {% if device_type == DeviceType.x86 %} | |
80 | - mount /dev/sda1 /tmp | |
e640b6d8 JR |
81 | {% elif device_type == DeviceType.kvm %} |
82 | - mount /dev/sda /tmp | |
c11ec858 | 83 | {% endif %} |
e640b6d8 | 84 | - rm -rf /tmp/* |
9665810d JR |
85 | - depmod -a |
86 | - locale-gen en_US.UTF-8 | |
87 | - apt-get update | |
88 | - apt-get upgrade | |
27b045e1 | 89 | - apt-get install -y systemtap-sdt-dev |
9db5ccdf | 90 | - pip3 install 'pip==20.3' |
9665810d JR |
91 | - hash -r |
92 | - pip3 install vlttng | |
93 | - {{ vlttng_cmd }} | |
94 | - ln -s {{ vlttng_path }} /root/lttngvenv | |
95 | - sync | |
9665810d JR |
96 | from: inline |
97 | name: x86-env-setup-inline | |
98 | path: inline/x86-env-setup.yaml | |
523e784d | 99 | {% if test_type == TestType.baremetal_tests %} |
9665810d JR |
100 | - repository: https://github.com/lttng/lttng-ci.git |
101 | from: git | |
102 | path: lava/system-tests/perf-tests.yml | |
103 | name: perf-tests | |
6b35e57c | 104 | params: |
cf1271bb | 105 | LTTNG_VERSION_STRING: {{ lttng_version_string }} |
6b35e57c | 106 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
9665810d JR |
107 | {% elif test_type == TestType.kvm_tests %} |
108 | - repository: https://github.com/lttng/lttng-ci.git | |
109 | from: git | |
110 | path: lava/system-tests/kernel-tests.yml | |
111 | name: kernel-tests | |
6b35e57c | 112 | params: |
cf1271bb | 113 | LTTNG_VERSION_STRING: {{ lttng_version_string }} |
6b35e57c | 114 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
9665810d JR |
115 | - repository: https://github.com/lttng/lttng-ci.git |
116 | from: git | |
117 | path: lava/system-tests/destructive-tests.yml | |
118 | name: destructive-tests | |
6b35e57c | 119 | params: |
cf1271bb | 120 | LTTNG_VERSION_STRING: {{ lttng_version_string }} |
6b35e57c | 121 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
9665810d | 122 | {% endif %} |