| 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 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: |
| 74 | - chmod 755 / |
| 75 | - systemctl start systemd-timesyncd |
| 76 | - echo nameserver 172.18.0.12 > /etc/resolv.conf |
| 77 | - ip a |
| 78 | - groupadd tracing |
| 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 | - depmod -a |
| 86 | - locale-gen en_US.UTF-8 |
| 87 | - apt-get update |
| 88 | - apt-get upgrade |
| 89 | - apt-get install -y systemtap-sdt-dev |
| 90 | - pip3 install --upgrade pip |
| 91 | - hash -r |
| 92 | - pip3 install vlttng |
| 93 | - {{ vlttng_cmd }} |
| 94 | - ln -s {{ vlttng_path }} /root/lttngvenv |
| 95 | - sync |
| 96 | from: inline |
| 97 | name: x86-env-setup-inline |
| 98 | path: inline/x86-env-setup.yaml |
| 99 | {% if test_type == TestType.baremetal_benchmarks %} |
| 100 | - repository: https://github.com/lttng/lttng-ci.git |
| 101 | from: git |
| 102 | path: lava/system-tests/failing-close.yml |
| 103 | name: failing-close |
| 104 | params: |
| 105 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 106 | - repository: https://github.com/lttng/lttng-ci.git |
| 107 | from: git |
| 108 | path: lava/system-tests/failing-ioctl.yml |
| 109 | name: failing-ioctl |
| 110 | params: |
| 111 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 112 | - repository: https://github.com/lttng/lttng-ci.git |
| 113 | from: git |
| 114 | path: lava/system-tests/failing-open-efault.yml |
| 115 | name: failing-open-efault |
| 116 | params: |
| 117 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 118 | - repository: https://github.com/lttng/lttng-ci.git |
| 119 | from: git |
| 120 | path: lava/system-tests/success-dup-close.yml |
| 121 | name: success-dup-close |
| 122 | params: |
| 123 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 124 | - repository: https://github.com/lttng/lttng-ci.git |
| 125 | from: git |
| 126 | path: lava/system-tests/raw-syscall-getpid.yml |
| 127 | name: raw-syscall-getpid |
| 128 | params: |
| 129 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 130 | - repository: https://github.com/lttng/lttng-ci.git |
| 131 | from: git |
| 132 | path: lava/system-tests/failing-open-enoent.yml |
| 133 | name: failing-open-enoent |
| 134 | params: |
| 135 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 136 | - repository: https://github.com/lttng/lttng-ci.git |
| 137 | from: git |
| 138 | path: lava/system-tests/lttng-test-filter.yml |
| 139 | name: lttng-test-filter |
| 140 | params: |
| 141 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 142 | {% elif test_type == TestType.baremetal_tests %} |
| 143 | - repository: https://github.com/lttng/lttng-ci.git |
| 144 | from: git |
| 145 | path: lava/system-tests/perf-tests.yml |
| 146 | name: perf-tests |
| 147 | params: |
| 148 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 149 | {% elif test_type == TestType.kvm_tests %} |
| 150 | - repository: https://github.com/lttng/lttng-ci.git |
| 151 | from: git |
| 152 | path: lava/system-tests/kernel-tests.yml |
| 153 | name: kernel-tests |
| 154 | params: |
| 155 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 156 | - repository: https://github.com/lttng/lttng-ci.git |
| 157 | from: git |
| 158 | path: lava/system-tests/destructive-tests.yml |
| 159 | name: destructive-tests |
| 160 | params: |
| 161 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 162 | {% endif %} |