{% 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 %}