diff --git a/anthy-unicode.spec b/anthy-unicode.spec index 8356be4..14038c6 100644 --- a/anthy-unicode.spec +++ b/anthy-unicode.spec @@ -4,7 +4,7 @@ Name: anthy-unicode Version: 1.0.0.20201109 -Release: 3%{?dist} +Release: 4%{?dist} # The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain. License: LGPLv2+ and GPLv2 and Public Domain URL: https://github.com/fujiwarat/anthy-unicode/wiki @@ -161,6 +161,9 @@ rm test.conf %changelog +* Sat May 01 2021 Takao Fujiwara 1.0.0.20201109-4 +- Enable CI + * Thu Apr 15 2021 Mohan Boddu - 1.0.0.20201109-3 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 diff --git a/tests/tests.sh b/tests/tests.sh new file mode 100755 index 0000000..9d18fcd --- /dev/null +++ b/tests/tests.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +: ${SRCDIR:='./source'} + +anthy-dic-tool-unicode --load $SRCDIR/src-util/dic-tool-input +diff $HOME/.config/anthy/private_words_default $SRCDIR/src-util/dic-tool-result +anthy-dic-tool-unicode --dump +[ -d $HOME/.anthy ] || mkdir $HOME/.anthy +mv $HOME/.config/anthy/private_words_default $HOME/.anthy +anthy-dic-tool-unicode --migrate +diff $HOME/.config/anthy/private_words_default $SRCDIR/src-util/dic-tool-result + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f06c15e --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,20 @@ +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-source + required_packages: + - git + vars: + fetch_only: True + - role: standard-test-basic + #- role: standard-test-beakerlib + required_packages: + - bash + - xemacs + - anthy-unicode + tests: + - smoke1: + dir: . + run: ./tests.sh +