Add gating and run included unit tests

This commit is contained in:
Lukáš Zachar 2024-07-18 18:41:16 +02:00
parent 167d28080a
commit e46b652bb2
4 changed files with 35 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

20
tests/unit.fmf Normal file
View File

@ -0,0 +1,20 @@
test: |
cd $TMT_SOURCE_DIR
# Comment out simplecov.
for file in \
spec/spec_helper.rb \
test/executable/suite.rb \
test/functional/for_redcloth.rb \
test/functional/suite.rb \
test/unit/suite.rb; do
sed -i "/^require 'simplecov'/ s/^/#/" "${file}"
done
export LANG=C.UTF-8
ruby ./test/functional/suite.rb
# RedCloth is not installed and will be skipped anyway
# ruby ./test/functional/for_redcloth.rb
ruby ./test/unit/suite.rb
require:
- rubygem-coderay
tag:
- rhel-buildroot