From 0bbb5265df700598a260ae700ae54fdd55f283f6 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 23 Jul 2024 20:53:10 +0530 Subject: [PATCH] Update CI tests to use tmt tool --- .fmf/version | 1 + plans/hunspell-ta.fmf | 4 ++++ tests/scripts/run_tests.sh | 4 ---- tests/test_dic_availability.fmf | 6 ++++++ tests/{scripts => }/test_dic_availability.py | 0 tests/test_suggest_words.fmf | 6 ++++++ tests/{scripts => }/test_suggest_words.py | 0 tests/tests.yml | 11 ----------- 8 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/hunspell-ta.fmf delete mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/test_dic_availability.fmf rename tests/{scripts => }/test_dic_availability.py (100%) create mode 100644 tests/test_suggest_words.fmf rename tests/{scripts => }/test_suggest_words.py (100%) delete mode 100644 tests/tests.yml 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-ta.fmf b/plans/hunspell-ta.fmf new file mode 100644 index 0000000..6eef3b7 --- /dev/null +++ b/plans/hunspell-ta.fmf @@ -0,0 +1,4 @@ +discover: + how: fmf +execute: + how: tmt diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh deleted file mode 100644 index 80d965a..0000000 --- a/tests/scripts/run_tests.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -python3 test_suggest_words.py -python3 test_dic_availability.py diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf new file mode 100644 index 0000000..7ad4815 --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ta +test: python3 test_dic_availability.py +framework: shell + diff --git a/tests/scripts/test_dic_availability.py b/tests/test_dic_availability.py similarity index 100% rename from tests/scripts/test_dic_availability.py rename to tests/test_dic_availability.py diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf new file mode 100644 index 0000000..57e2b84 --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ta +test: python3 test_suggest_words.py +framework: shell + diff --git a/tests/scripts/test_suggest_words.py b/tests/test_suggest_words.py similarity index 100% rename from tests/scripts/test_suggest_words.py rename to tests/test_suggest_words.py diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 5ffb74a..0000000 --- a/tests/tests.yml +++ /dev/null @@ -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