From afa1d55ce288447b334d3e8d818d4e325c79ebdc Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Wed, 21 Jun 2023 14:41:20 +0200 Subject: [PATCH] import sources --- .gitignore | 3 +-- tests/tests.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 29435f5..741ba28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/enchant-1.6.0.tar.gz -/enchant-1.6.0.tar.gz +enchant-1.6.0.tar.gz diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..7ed9687 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,42 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - test_lsmod_h: + dir: . + run: enchant-lsmod -h >/dev/null + - test_lsmod_v: + dir: . + run: enchant-lsmod -v >/dev/null + - test_list_dicts_aa_BB: + dir: . + run: test "`enchant-lsmod -list-dicts | grep aa_BB`" = "" + - test_list_dicts_cs_CZ: + dir: . + run: test "`enchant-lsmod -list-dicts | grep cs_CZ`" != "" + - test_enchant_h: + dir: . + run: enchant -h >/dev/null + - test_enchant_v: + dir: . + run: enchant -v >/dev/null + - test_enchant_d_CCC: + dir: . + run: test "`echo cezta | enchant -d cs_CZ -a | grep -c CCC`" = "0" + - test_enchant_d_cesta: + dir: . + run: echo "cezta" | enchant -d cs_CZ -a | grep cesta >/dev/null + - test_cezta_pen_pes_cezta: + dir: . + run: echo "cezta pen pes" | enchant -d cs_CZ -l | grep cezta >/dev/null + - test_cezta_pen_pes_pen: + dir: . + run: echo "cezta pen pes" | enchant -d cs_CZ -l | grep pen >/dev/null + - test_cezta_pen_pes_pes: + dir: . + run: test "`echo cezta pen pes | enchant -d cs_CZ -l | grep -c pen`" = "1" + required_packages: + - enchant + - hunspell-cs