Resolves:RHEL-52303 - Add conditional for RHEL for using hunspell directory

Add tmt CI tests
This commit is contained in:
Parag Nemade 2024-07-29 14:39:58 +05:30
parent 01028aadfc
commit e39db6e987
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
9 changed files with 25 additions and 17 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,12 +1,13 @@
%if 0%{?fedora} > 35
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-si
Summary: Sinhala hunspell dictionaries
Version: 0.2.1
Release: 32%{?dist}
Release: 33%{?dist}
Source: http://www.sandaru1.com/si-LK.tar.gz
#Following URL is down since few months informed to upstream
URL: http://www.sandaru1.com/2009/08/29/sinhala-spell-checker-for-firefox/
@ -34,6 +35,10 @@ cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/si_LK.d
%{_datadir}/%{dict_dirname}/*
%changelog
* Sat Aug 03 2024 Parag Nemade <pnemade AT redhat DOT com> - 0.2.1-33
- Resolves:RHEL-52303 - Add conditional for RHEL for using hunspell directory
- Add tmt CI tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.2.1-32
- Bump release for June 2024 mass rebuild

5
plans/hunspell-si.fmf Normal file
View File

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

View File

@ -1,4 +0,0 @@
#!/bin/bash
python3 test_suggest_words.py
python3 test_dic_availability.py

View File

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-si
test: python3 test_dic_availability.py
framework: shell

View File

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-si
test: python3 test_suggest_words.py
framework: shell

View File

@ -1,11 +0,0 @@
- hosts: localhost
roles:
- role: standard-test-basic
required_packages:
- python3-enchant
tags:
- classic
tests:
- sample:
dir: scripts/
run: ./run_tests.sh