diff --git a/anthy-unicode.spec b/anthy-unicode.spec index c7964e0..5c2fed9 100644 --- a/anthy-unicode.spec +++ b/anthy-unicode.spec @@ -4,7 +4,7 @@ Name: anthy-unicode Version: 1.0.0.20201109 -Release: 2%{?dist} +Release: 3%{?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-3 +- Enable CI + * Tue Jan 26 2021 Fedora Release Engineering - 1.0.0.20201109-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild 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..17f398e --- /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 +