From 9d120c43597e67cf6fb1d3744760f9b4371ebe69 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 24 Dec 2024 12:52:54 +0530 Subject: [PATCH 1/5] Add tmt CI tests --- .fmf/version | 1 + plans/hunspell-ms.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-ms.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-ms.fmf b/plans/hunspell-ms.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell-ms.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..0f117e8 --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ms +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..218d508 --- /dev/null +++ b/tests/test_dic_availability.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import enchant + +lang = "ms_MY" +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..5bafe18 --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ms +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..a2e6c94 --- /dev/null +++ b/tests/test_suggest_words.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import enchant + +wdlst = [ "Hello", "teh", "pagi"] +dic = enchant.Dict("ms_MY") +for wd in wdlst: + dic.check(wd) + print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd))) From 96698001d398d3aad54adf6b6526b16de6d7c147 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 06:22:12 +0000 Subject: [PATCH 2/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- hunspell-ms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ms.spec b/hunspell-ms.spec index a28df6b..38f0886 100644 --- a/hunspell-ms.spec +++ b/hunspell-ms.spec @@ -8,7 +8,7 @@ Name: hunspell-ms Summary: Malay hunspell dictionaries %global upstreamid 20050117 Version: 0.%{upstreamid} -Release: 33%{?dist} +Release: 34%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip URL: https://wiki.openoffice.org/wiki/Dictionaries # affix file is under GPL+ @@ -45,6 +45,9 @@ done %{_datadir}/%{dict_dirname}/* %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 0.20050117-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 0.20050117-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 8509513de3843fd3c464230ae2105453065fd88a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:15:27 +0000 Subject: [PATCH 3/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- hunspell-ms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ms.spec b/hunspell-ms.spec index 38f0886..8ca7cfd 100644 --- a/hunspell-ms.spec +++ b/hunspell-ms.spec @@ -8,7 +8,7 @@ Name: hunspell-ms Summary: Malay hunspell dictionaries %global upstreamid 20050117 Version: 0.%{upstreamid} -Release: 34%{?dist} +Release: 35%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip URL: https://wiki.openoffice.org/wiki/Dictionaries # affix file is under GPL+ @@ -45,6 +45,9 @@ done %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 0.20050117-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 0.20050117-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 24ec65a74912c2d263a30524e061c66365f92764 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 16:22:17 +0000 Subject: [PATCH 4/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- hunspell-ms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ms.spec b/hunspell-ms.spec index 8ca7cfd..8473703 100644 --- a/hunspell-ms.spec +++ b/hunspell-ms.spec @@ -8,7 +8,7 @@ Name: hunspell-ms Summary: Malay hunspell dictionaries %global upstreamid 20050117 Version: 0.%{upstreamid} -Release: 35%{?dist} +Release: 36%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip URL: https://wiki.openoffice.org/wiki/Dictionaries # affix file is under GPL+ @@ -45,6 +45,9 @@ done %{_datadir}/%{dict_dirname}/* %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.20050117-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Thu Jul 24 2025 Fedora Release Engineering - 0.20050117-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 6b9bd6a7629c664a79af0846b6b1c88b01930ea4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jul 2026 03:29:50 +0000 Subject: [PATCH 5/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- hunspell-ms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ms.spec b/hunspell-ms.spec index 8473703..2e7fccf 100644 --- a/hunspell-ms.spec +++ b/hunspell-ms.spec @@ -8,7 +8,7 @@ Name: hunspell-ms Summary: Malay hunspell dictionaries %global upstreamid 20050117 Version: 0.%{upstreamid} -Release: 36%{?dist} +Release: 37%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip URL: https://wiki.openoffice.org/wiki/Dictionaries # affix file is under GPL+ @@ -45,6 +45,9 @@ done %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 16 2026 Fedora Release Engineering - 0.20050117-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Fri Jan 16 2026 Fedora Release Engineering - 0.20050117-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild