| 1 | device_type: x86 |
| 2 | job_name: {{ job_name }} |
| 3 | timeouts: |
| 4 | job: |
| 5 | hours: 2 |
| 6 | priority: medium |
| 7 | visibility: public |
| 8 | {% if device_type == DeviceType.kvm %} |
| 9 | context: |
| 10 | # tell the qemu template which architecture is being tested |
| 11 | # the template uses that to ensure that qemu-system-x86_64 is executed. |
| 12 | {# Used amd64 as a default #} |
| 13 | arch: amd64 |
| 14 | tags: |
| 15 | - qemu |
| 16 | {% endif %} |
| 17 | {% if device_type == DeviceType.x86 %} |
| 18 | tags: |
| 19 | - dev-sda1 |
| 20 | {% endif %} |
| 21 | |
| 22 | metadata: |
| 23 | jenkins_jobname: {{ job_name }} |
| 24 | {% if test_type == TestType.kvm_fuzzing_tests %} |
| 25 | nb_iterations: {{ kprobe_round_nb }} |
| 26 | {% endif %} |
| 27 | |
| 28 | |
| 29 | actions: |
| 30 | - deploy: |
| 31 | timeout: |
| 32 | minutes: 10 |
| 33 | to: tftp |
| 34 | kernel: |
| 35 | url: {{ kernel_url }} |
| 36 | type: zimage |
| 37 | modules: |
| 38 | url: {{ lttng_modules_url }} |
| 39 | compression: gz |
| 40 | nfsrootfs: |
| 41 | url: {{ nfsrootfs_url }} |
| 42 | compression: gz |
| 43 | os: ubuntu |
| 44 | |
| 45 | - boot: |
| 46 | timeout: |
| 47 | minutes: 10 |
| 48 | method: ipxe |
| 49 | commands: nfs |
| 50 | prompts: |
| 51 | - 'root@linaro-server:~#' |
| 52 | |
| 53 | - test: |
| 54 | definitions: |
| 55 | # Base setup of environment # |
| 56 | - repository: |
| 57 | metadata: |
| 58 | format: Lava-Test Test Definition 1.0 |
| 59 | name: x86-env-setup |
| 60 | description: "Basic environment setup for x86 board" |
| 61 | os: |
| 62 | - ubuntu |
| 63 | devices: |
| 64 | - x86 |
| 65 | run: |
| 66 | steps: |
| 67 | - cat /etc/resolv.conf |
| 68 | - echo nameserver 172.18.0.12 > /etc/resolv.conf |
| 69 | - groupadd tracing |
| 70 | {% if device_type == DeviceType.x86 %} |
| 71 | - mount /dev/sda1 /tmp |
| 72 | - rm -rf /tmp/* |
| 73 | {% endif %} |
| 74 | - depmod -a |
| 75 | - locale-gen en_US.UTF-8 |
| 76 | - apt-get update |
| 77 | - apt-get upgrade |
| 78 | - apt-get install -y {{ packages|join(" ") }} |
| 79 | {% if test_type != TestType.kvm_fuzzing_tests %} |
| 80 | - pip3 install --upgrade pip |
| 81 | - hash -r |
| 82 | - pip3 install vlttng |
| 83 | - {{ vlttng_cmd }} |
| 84 | - ln -s {{ vlttng_path }} /root/lttngvenv |
| 85 | - sync |
| 86 | {% endif %} |
| 87 | from: inline |
| 88 | name: x86-env-setup-inline |
| 89 | path: inline/x86-env-setup.yaml |
| 90 | {% if test_type == TestType.baremetal_benchmarks %} |
| 91 | - repository: https://github.com/lttng/lttng-ci.git |
| 92 | from: git |
| 93 | path: lava/system-tests/failing-close.yml |
| 94 | name: failing-close |
| 95 | - repository: https://github.com/lttng/lttng-ci.git |
| 96 | from: git |
| 97 | path: lava/system-tests/failing-ioctl.yml |
| 98 | name: failing-ioctl |
| 99 | - repository: https://github.com/lttng/lttng-ci.git |
| 100 | from: git |
| 101 | path: lava/system-tests/failing-open-efault.yml |
| 102 | name: failing-open-efault |
| 103 | - repository: https://github.com/lttng/lttng-ci.git |
| 104 | from: git |
| 105 | path: lava/system-tests/success-dup-close.yml |
| 106 | name: success-dup-close |
| 107 | - repository: https://github.com/lttng/lttng-ci.git |
| 108 | from: git |
| 109 | path: lava/system-tests/raw-syscall-getpid.yml |
| 110 | name: raw-syscall-getpid |
| 111 | - repository: https://github.com/lttng/lttng-ci.git |
| 112 | from: git |
| 113 | path: lava/system-tests/failing-open-enoent.yml |
| 114 | name: failing-open-enoent |
| 115 | - repository: https://github.com/lttng/lttng-ci.git |
| 116 | from: git |
| 117 | path: lava/system-tests/lttng-test-filter.yml |
| 118 | name: lttng-test-filter |
| 119 | {% elif test_type == TestType.baremetal_tests %} |
| 120 | - repository: https://github.com/lttng/lttng-ci.git |
| 121 | from: git |
| 122 | path: lava/system-tests/perf-tests.yml |
| 123 | name: perf-tests |
| 124 | {% elif test_type == TestType.kvm_tests %} |
| 125 | - repository: https://github.com/lttng/lttng-ci.git |
| 126 | from: git |
| 127 | path: lava/system-tests/kernel-tests.yml |
| 128 | name: kernel-tests |
| 129 | - repository: https://github.com/lttng/lttng-ci.git |
| 130 | from: git |
| 131 | path: lava/system-tests/destructive-tests.yml |
| 132 | name: destructive-tests |
| 133 | {% elif test_type == TestType.kvm_fuzzing_tests %} |
| 134 | - repository: https://github.com/lttng/lttng-ci.git |
| 135 | from: git |
| 136 | path: lava/system-tests/kprobe-fuzzing-generate-data.yml |
| 137 | name: kprobe-fuzzing-generate-data |
| 138 | params: |
| 139 | RANDOM_SEED: {{ random_seed }} |
| 140 | {% for i in range(kprobe_round_nb) %} |
| 141 | - repository: https://github.com/lttng/lttng-ci.git |
| 142 | from: git |
| 143 | path: lava/system-tests/kprobe-fuzzing-tests.yml |
| 144 | name: kprobe-fuzzing-tests |
| 145 | params: |
| 146 | ROUND_NB: {{ i }} |
| 147 | {% endfor %} |
| 148 | {% endif %} |