From afb8807cdf289df8e37589ad5512fd8adf19b532 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 10 Sep 2024 19:00:52 +0530 Subject: [PATCH 1/5] Add tmt testcase for CI --- .fmf/version | 1 + plans/hunspell-th.fmf | 5 +++++ tests/test_dic_availability.fmf | 6 ++++++ tests/test_dic_availability.py | 10 ++++++++++ tests/test_suggest_words.fmf | 6 ++++++ tests/test_suggest_words.py | 9 +++++++++ 6 files changed, 37 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/hunspell-th.fmf create mode 100644 tests/test_dic_availability.fmf create mode 100644 tests/test_dic_availability.py create mode 100644 tests/test_suggest_words.fmf create mode 100644 tests/test_suggest_words.py diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/hunspell-th.fmf b/plans/hunspell-th.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell-th.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf new file mode 100644 index 0000000..06b2e6f --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-th +test: python3 test_dic_availability.py +framework: shell + diff --git a/tests/test_dic_availability.py b/tests/test_dic_availability.py new file mode 100644 index 0000000..e5dda1a --- /dev/null +++ b/tests/test_dic_availability.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import enchant + +lang = "th_TH" +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") diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf new file mode 100644 index 0000000..427afbe --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-th +test: python3 test_suggest_words.py +framework: shell + diff --git a/tests/test_suggest_words.py b/tests/test_suggest_words.py new file mode 100644 index 0000000..20f9c9e --- /dev/null +++ b/tests/test_suggest_words.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import enchant + +wdlst = [ "สวัสดี", "ชา", "เช้า"] +dic = enchant.Dict("th_TH") +for wd in wdlst: + dic.check(wd) + print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd))) From e2ec1a266c11d9339ede153ad943505faca048a1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 06:29:27 +0000 Subject: [PATCH 2/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- hunspell-th.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-th.spec b/hunspell-th.spec index 491828d..28011b9 100644 --- a/hunspell-th.spec +++ b/hunspell-th.spec @@ -8,7 +8,7 @@ Name: hunspell-th Summary: Thai hunspell dictionaries %global upstreamid 20061212 Version: 0.%{upstreamid} -Release: 33%{?dist} +Release: 34%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/th_TH.zip URL: https://wiki.openoffice.org/wiki/Dictionaries License: LGPL-2.1-or-later @@ -38,6 +38,9 @@ cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %{_datadir}/%{dict_dirname}/* %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 0.20061212-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 0.20061212-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 415a9650d6cdb7b54c78680350770c594315de1d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:19:01 +0000 Subject: [PATCH 3/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- hunspell-th.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-th.spec b/hunspell-th.spec index 28011b9..06e4faf 100644 --- a/hunspell-th.spec +++ b/hunspell-th.spec @@ -8,7 +8,7 @@ Name: hunspell-th Summary: Thai hunspell dictionaries %global upstreamid 20061212 Version: 0.%{upstreamid} -Release: 34%{?dist} +Release: 35%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/th_TH.zip URL: https://wiki.openoffice.org/wiki/Dictionaries License: LGPL-2.1-or-later @@ -38,6 +38,9 @@ cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 0.20061212-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 0.20061212-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 058d10eab10998884643e411d1ac17763677443c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 16:25:52 +0000 Subject: [PATCH 4/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- hunspell-th.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-th.spec b/hunspell-th.spec index 06e4faf..a74f858 100644 --- a/hunspell-th.spec +++ b/hunspell-th.spec @@ -8,7 +8,7 @@ Name: hunspell-th Summary: Thai hunspell dictionaries %global upstreamid 20061212 Version: 0.%{upstreamid} -Release: 35%{?dist} +Release: 36%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/th_TH.zip URL: https://wiki.openoffice.org/wiki/Dictionaries License: LGPL-2.1-or-later @@ -38,6 +38,9 @@ cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %{_datadir}/%{dict_dirname}/* %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.20061212-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Thu Jul 24 2025 Fedora Release Engineering - 0.20061212-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 4341ab5140cea063055e18d2fcbec48385e1b27e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jul 2026 03:33:23 +0000 Subject: [PATCH 5/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- hunspell-th.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-th.spec b/hunspell-th.spec index a74f858..41c6ba0 100644 --- a/hunspell-th.spec +++ b/hunspell-th.spec @@ -8,7 +8,7 @@ Name: hunspell-th Summary: Thai hunspell dictionaries %global upstreamid 20061212 Version: 0.%{upstreamid} -Release: 36%{?dist} +Release: 37%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/th_TH.zip URL: https://wiki.openoffice.org/wiki/Dictionaries License: LGPL-2.1-or-later @@ -38,6 +38,9 @@ cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 16 2026 Fedora Release Engineering - 0.20061212-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Fri Jan 16 2026 Fedora Release Engineering - 0.20061212-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild