Skip to content

Commit

Permalink
adding tmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorquas committed Sep 13, 2023
1 parent ed59653 commit ca02c76
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
18 changes: 18 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions systemtest/plans/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
summary: rhc test suite
discover:
how: fmf

prepare:
- name: Install packages
how: install
package:
- golang
- make

execute:
how: tmt
3 changes: 3 additions & 0 deletions systemtest/tests/example/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summary: Runs tmt tests
test: ./test.sh
duration: 10m
5 changes: 5 additions & 0 deletions systemtest/tests/example/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# get to project root
cd ../../../
pwd
make tests

0 comments on commit ca02c76

Please sign in to comment.