Add gating and run included unit tests
This commit is contained in:
parent
167d28080a
commit
e46b652bb2
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
6
gating.yaml
Normal file
6
gating.yaml
Normal 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
8
plans/main.fmf
Normal 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
20
tests/unit.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user