Add gating on tmt plan

Add single test running bundled tests
This commit is contained in:
Lukáš Zachar 2024-07-24 11:18:28 +02:00
parent 5bee6be647
commit b7439cea59
4 changed files with 24 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

8
plans/main.fmf Normal file
View File

@ -0,0 +1,8 @@
execute:
how: tmt
discover:
dist-git-source: true
dist-git-merge: true
how: fmf
dist-git-install-builddeps: true

9
tests/unit.fmf Normal file
View File

@ -0,0 +1,9 @@
test: |
cd $(dirname $TMT_SOURCE_DIR/*/test)
sed -i '/simplecov/,/^end$/ s/^/#/' test/helper.rb
LANG=C.UTF-8 ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
require:
- rubygem-mustache
tag:
- rhel-buildroot