{% macro git_repo(git_repo_url, git_repo_dir) %}
  • 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 {{ git_repo_url }}

  • Copy the test directory {{ git_repo_dir }} to the device:
  • $ DUT_IP=<device-ip>

    $ scp -r {{ git_repo_dir }} user@$DUT_IP:

  • Log into the target:
  • $ ssh user@$DUT_IP

    {% endmacro %} {% macro ostree_preconditions(pkgname) %}
  • From a PC, download and unpack the test data tarball from the gitlab test repository:
  • $ wget https://gitlab.apertis.org/tests/{{ pkgname }}/-/archive/master/{{ pkgname }}.tar.gz

    $ tar -xvf {{ pkgname }}.tar.gz

  • Copy the {{ pkgname }}-master-* to the device
  • $ DUT_IP=<device-ip>

    $ scp -r {{ pkgname }}-master-* user@$DUT_IP:

  • Log into the target
  • $ ssh user@$DUT_IP

  • After log into the DUT, enter the test directory
  • $ cd {{ pkgname }}-master-*

  • 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.
  • {% 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 }}-*

  • Clone the apertis-tests git repository:
  • $ git clone https://gitlab.apertis.org/infrastructure/apertis-tests.git

  • Enter the tests directory and follow the execution steps.
  • $ cd apertis-tests/

    {% endmacro %}