Add tmt testcase for CI

This commit is contained in:
Parag Nemade 2024-09-12 08:29:08 +05:30
parent cb04f6900e
commit 03af465cee
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
6 changed files with 12 additions and 13 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

5
plans/hunspell.fmf Normal file
View File

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

5
tests/main.fmf Normal file
View File

@ -0,0 +1,5 @@
require:
- hunspell
- hunspell-de
test: bash ./run_tests.sh
framework: shell

View File

@ -11,7 +11,7 @@ check_pkg() {
}
check_dict() {
if [ -f "/usr/share/myspell/de_DE.dic" ]
if [ -f "/usr/share/hunspell/de_DE.dic" ]
then
echo "PASS"
else

View File

@ -1,12 +0,0 @@
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- hunspell
- hunspell-de
tests:
- simple:
dir: scripts
run: ./run_tests.sh