| 1 | metadata: |
| 2 | format: Lava-Test Test Definition 1.0 |
| 3 | name: x86-env-setup |
| 4 | description: "Basic environment setup for x86 board" |
| 5 | os: |
| 6 | - debian |
| 7 | - ubuntu |
| 8 | devices: |
| 9 | - x86 |
| 10 | run: |
| 11 | steps: |
| 12 | - chmod 755 / |
| 13 | - echo nameserver 172.18.0.13 > /etc/resolv.conf |
| 14 | - ip a |
| 15 | - groupadd tracing |
| 16 | - depmod -a |
| 17 | # The locale generation is required for the python venv |
| 18 | # to be correctgly created. |
| 19 | - locale-gen en_US.UTF-8 |
| 20 | - python3 -m venv /root/python-venv |
| 21 | - source /root/python-venv/bin/activate |
| 22 | - pip3 install vlttng |
| 23 | - hash -r |
| 24 | - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci |
| 25 | - mkdir -p /root/.ssh |
| 26 | - chmod 700 /root/.ssh |
| 27 | - cp lava/system-tests/authorized_keys /root/.ssh/authorized_keys |
| 28 | - chmod 600 /root/.ssh/authorized_keys |
| 29 | - sync |