{% 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) %}
  • 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):
  • {% for precondition in preconditions %}
    $ git clone --depth 1 --branch  {{ precondition.branch }} https://gitlab.apertis.org/tests/{{ precondition.reponame }}
    {% endfor %}
  • Copy the test directory to the target device:
  • $ DUT_IP=<device-ip>
    $ scp -r{% for precondition in preconditions %} {{ precondition.reponame }} {% endfor %}user@$DUT_IP:
  • Log into the target device:
  • $ ssh user@$DUT_IP
  • After log into the DUT, enter the test directory, and run respective commands mentioned in the execution steps
  • {% if preconditions|length == 1 %}
    $ cd {{ preconditions[0].reponame }}
    {% endif %} {% 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 %}