Enable CI

This commit is contained in:
Takao Fujiwara 2021-05-01 10:58:00 +09:00
parent 404339baa7
commit 53e0391f43
3 changed files with 36 additions and 1 deletions

View File

@ -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 <fujiwara@redhat.com> 1.0.0.20201109-3
- Enable CI
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

12
tests/tests.sh Executable file
View File

@ -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

20
tests/tests.yml Normal file
View File

@ -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