Resolves: rhbz#1978233 Add CI tests and add gating.yaml

This commit is contained in:
Mike FABIAN 2021-07-01 13:19:59 +02:00
parent 829a3e4a64
commit f0602f50ac
5 changed files with 42 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-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

5
plans/basic.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

6
tests/main.fmf Normal file
View File

@ -0,0 +1,6 @@
test: ./runtest.sh
framework: beakerlib
duration: 10m
require:
- libreoffice-voikko
- libreoffice-core

24
tests/runtest.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlAssertRpm libreoffice-voikko
rlAssertRpm libreoffice-core
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlPhaseEnd
rlPhaseStartTest
rlRun "unopkg list --bundled | grep 'Identifier.*voikko'" \
0 "Check whether the libreoffice-voikko extension is installed."
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd