From ca02c76122815e5f56d43a98eefa0283a96596a4 Mon Sep 17 00:00:00 2001 From: James Molet Date: Wed, 13 Sep 2023 10:14:26 -0400 Subject: [PATCH] adding tmt --- .fmf/version | 1 + .packit.yaml | 18 ++++++++++++++++++ systemtest/plans/main.fmf | 13 +++++++++++++ systemtest/tests/example/main.fmf | 3 +++ systemtest/tests/example/test.sh | 5 +++++ 5 files changed, 40 insertions(+) create mode 100644 .fmf/version create mode 100644 .packit.yaml create mode 100644 systemtest/plans/main.fmf create mode 100644 systemtest/tests/example/main.fmf create mode 100755 systemtest/tests/example/test.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..8f39735 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,18 @@ +# Default packit instance is a prod and only this is used +# stg instance is present for testing new packit features in forked repositories where stg is installed. +packit_instances: ["prod"] +upstream_project_url: https://github.com/Lorquas/rhc +# issue_repository: https://github.com/strimzi/strimzi-kafka-operator +jobs: + - job: tests + trigger: pull_request + # Suffix for job name + identifier: "unit" + targets: + # https://packit.dev/docs/configuration/#aliases + - centos-stream-9-x86_64 + - fedora-latest-stable + skip_build: true + manual_trigger: true + labels: + - unit \ No newline at end of file diff --git a/systemtest/plans/main.fmf b/systemtest/plans/main.fmf new file mode 100644 index 0000000..7d9c310 --- /dev/null +++ b/systemtest/plans/main.fmf @@ -0,0 +1,13 @@ +summary: rhc test suite +discover: + how: fmf + +prepare: + - name: Install packages + how: install + package: + - golang + - make + +execute: + how: tmt diff --git a/systemtest/tests/example/main.fmf b/systemtest/tests/example/main.fmf new file mode 100644 index 0000000..da32606 --- /dev/null +++ b/systemtest/tests/example/main.fmf @@ -0,0 +1,3 @@ +summary: Runs tmt tests +test: ./test.sh +duration: 10m diff --git a/systemtest/tests/example/test.sh b/systemtest/tests/example/test.sh new file mode 100755 index 0000000..9bfe651 --- /dev/null +++ b/systemtest/tests/example/test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# get to project root +cd ../../../ +pwd +make tests