ci: Use tmt based test cases
Resolves: RHELMISC-5979
This commit is contained in:
parent
7549bcb9c3
commit
9f3bb60b7c
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
3
tests/basic/main.fmf
Normal file
3
tests/basic/main.fmf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
summary: Concise summary describing what the test does
|
||||||
|
test: ./test.sh
|
||||||
|
framework: beakerlib
|
22
tests/basic/test.sh
Executable file
22
tests/basic/test.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
|
||||||
|
rlRun "pushd $tmp"
|
||||||
|
rlRun "set -o pipefail"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun "fc-match" 0 "Check fc-match"
|
||||||
|
rlRun "fc-list" 0 "Check fc-list"
|
||||||
|
rlRun "fc-scan /usr/share/fonts" 0 "Check fc-scan"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "popd"
|
||||||
|
rlRun "rm -r $tmp" 0 "Remove tmp directory"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalEnd
|
@ -1,14 +0,0 @@
|
|||||||
- hosts: localhost
|
|
||||||
roles:
|
|
||||||
- role: standard-test-basic
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
required_packages:
|
|
||||||
- fontconfig
|
|
||||||
tests:
|
|
||||||
- fcmatch_test:
|
|
||||||
dir: .
|
|
||||||
run: fc-match
|
|
||||||
- fclist_test:
|
|
||||||
dir: .
|
|
||||||
run: fc-list
|
|
Loading…
Reference in New Issue
Block a user