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