{% macro git_repo(url, dir, branch) %}
  • Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
  • $ git clone --branch {{ branch }} {{ url }}
  • Copy the test directory {{ dir }} to the target device:
  • $ DUT_IP=<device-ip>
    $ scp -r {{ dir }} user@$DUT_IP:
  • Log into the target device:
  • $ ssh user@$DUT_IP
    {% endmacro %} {% macro ostree_preconditions(preconditions) %} {% for precondition in preconditions %}
  • From a PC, download and unpack the test data tarball from the gitlab test repository:
  • $ wget https://gitlab.apertis.org/tests/{{ precondition.reponame }}/-/archive/{{ precondition.branch }}/{{ precondition.reponame }}.tar.gz
    $ tar -xvf {{ precondition.reponame }}.tar.gz
  • Copy the {{ precondition.reponame }}-* folder to the target device:
  • $ DUT_IP=<device-ip>
    $ scp -r {{ precondition.reponame }}-* user@$DUT_IP:
  • Log into the target device:
  • $ ssh user@$DUT_IP
  • After log into the DUT, enter the test directory
  • $ cd {{ precondition.reponame }}-*
  • Note that the tarball may change depending on the release/branch being tested, please make sure to download the correct tarball for the release in question.
  • {% endfor %} {% endmacro %} {% macro install_packages(packages_list) %}
  • Ensure Rootfs is remounted as read/write.
  • $ sudo mount -o remount,rw /
  • Install dependencies
  • $ sudo apt install {{ packages_list }}
  • Restart the system to restore the filesystem state to read-only before running the test.
  • $ sudo reboot
    {% endmacro %} {% macro modules_preconditions(libname) %}
  • Download the ribchester binary inside the /tmp directory.
  • $ cd /tmp/
    $ apt source {{ libname }}
    $ chown user:user -R /tmp/{{ libname }}-*
    {% endmacro %}