Resolves: rhbz#1996022 Add gating tests

This commit is contained in:
bbarve 2021-08-24 14:50:59 +05:30 committed by Stepan Oksanichenko
parent 8a073ff767
commit a574429d51
2 changed files with 44 additions and 0 deletions

1
.enchant.metadata Normal file
View File

@ -0,0 +1 @@
321f9cf0abfa1937401676ce60976d8779c39536 enchant-1.6.0.tar.gz

43
tests/tests.yml Normal file
View File

@ -0,0 +1,43 @@
- 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