Resolves:rhbz#1967646 - Correct the License: tag to LGPLv3+ based on LICENSE.txt file

Added gating tests
This commit is contained in:
Parag Nemade 2021-06-03 19:55:54 +05:30
parent a675261928
commit 6ae5f0df93
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
5 changed files with 45 additions and 2 deletions

View File

@ -1,10 +1,10 @@
Name: hunspell-eu
Summary: Basque hunspell dictionaries
Version: 5.1
Release: 2%{?dist}
Release: 3%{?dist}
Source0: http://xuxen.eus/static/hunspell/xuxen_%{version}_hunspell.zip
URL: http://xuxen.eus
License: GPLv3
License: LGPLv3+
BuildArch: noarch
Requires: hunspell
@ -29,6 +29,10 @@ cp -p eu_ES.aff %{buildroot}%{_datadir}/myspell/eu_ES.aff
%{_datadir}/myspell/*
%changelog
* Thu Jun 03 2021 Parag Nemade <pnemade AT redhat DOT com> - 5.1-3
- Resolves:rhbz#1967646 - Correct the License: tag to LGPLv3+ based on LICENSE.txt file
- Added gating tests
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.1-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937

View File

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

View File

@ -0,0 +1,10 @@
#!/usr/bin/python3
import enchant
lang = "eu_ES"
try:
dic = enchant.request_dict(lang)
print("Dictionary for {0} language is available for use".format(lang))
except enchant.errors.DictNotFoundError:
print("Dictionary is not installed for use")

View File

@ -0,0 +1,11 @@
#!/usr/bin/python3
import enchant
wdlst = [ "Namak", "bidea", "Chait"]
dic = enchant.Dict("eu_ES")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))

14
tests/tests.yml Normal file
View File

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