diff --git a/gatting/plans/testing-farm-tlog.fmf b/gatting/plans/testing-farm-tlog.fmf new file mode 100644 index 0000000..ece2f35 --- /dev/null +++ b/gatting/plans/testing-farm-tlog.fmf @@ -0,0 +1,34 @@ +provision: + # nested virtualization supported runner required + hardware: + cpu: + processors: ">= 2" + memory: ">= 6 GB" + virtualization: + is-supported: true +prepare: + - how: install + package: + - git + - podman + - skopeo + - tmt+provision-virtual + - tmt+provision-bootc + - how: shell + script: | + systemctl start libvirtd + systemctl status libvirtd +environment: + TMT_VERBOSE: 1 +execute: + how: tmt +discover: + how: fmf + test: + - /testing-farm +finish: + how: shell + script: + # move all tmt plan logs to tmt plan data folder + - mkdir -p $TMT_PLAN_DATA/test-tmt-log + - cp -r /var/tmp/tmt/run-* $TMT_PLAN_DATA/test-tmt-log diff --git a/gatting/plans/tlog.fmf b/gatting/plans/tlog.fmf new file mode 100644 index 0000000..811c3da --- /dev/null +++ b/gatting/plans/tlog.fmf @@ -0,0 +1,15 @@ +provision: + # use bootc plugin + # plugin configuration doc: https://tmt.readthedocs.io/en/stable/plugins/provision.html#bootc + how: bootc + container-file: /gatting/tests/Containerfile + container-file-workdir: . + disk: 20 +summary: Execute wget test +execute: + how: tmt + # run test here + script: | + set -xeu + wget --version + wget --help diff --git a/gatting/tests/Containerfile b/gatting/tests/Containerfile new file mode 100644 index 0000000..fb19886 --- /dev/null +++ b/gatting/tests/Containerfile @@ -0,0 +1,24 @@ +# Choose nightly base image from https://images.paas.redhat.com/repository/bootc/rhel-bootc?tab=tags +FROM images.paas.redhat.com/bootc/rhel-bootc:latest-9.6 + +# Add nightly compose repo into container image to install wget +RUN cat <> /etc/yum.repos.d/rhel-96.repo +[rhel96-baseos] +name=rhel96-baseos +baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6.0/compose/BaseOS/\$basearch/os/ +enabled=1 +gpgcheck=0 +repo_gpgcheck=0 + +[rhel96-appstream] +name=rhel96-appstream +baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6.0/compose/AppStream/\$basearch/os/ +enabled=1 +gpgcheck=0 +repo_gpgcheck=0 +EOF + +# Install wget from nightly compose +RUN dnf -y install tlog, systemd-journal-remote, glibc-all-langpacks, python3, python3-pytest, python3-pexpect, python3-systemd, tcsh && \ + dnf clean all + diff --git a/gatting/tests/testing-farm.fmf b/gatting/tests/testing-farm.fmf new file mode 100644 index 0000000..fddfa41 --- /dev/null +++ b/gatting/tests/testing-farm.fmf @@ -0,0 +1,3 @@ +summary: Deploy testing farm runner to run wget tmt test +test: cd ../.. && tmt run -vvvvv plans --name /gatting/plans/tlog +duration: 10m