Improve CI tests

This commit is contained in:
Mike FABIAN 2021-05-18 17:02:22 +02:00
parent 174f20b737
commit 06e068bcd1
2 changed files with 206 additions and 7 deletions

View File

@ -1,5 +1,29 @@
#!/bin/bash #!/bin/bash
cd ../source
FAIL_COUNTER=0
check_pkg() {
local pkg=$1
if rpm -q $pkg
then
echo "PASS"
else
echo "FAIL"
let "FAIL_COUNTER=FAIL_COUNTER+1"
fi
}
check_return_value () {
if [ $1 == 0 ]
then
echo "PASS"
else
echo "FAIL"
let "FAIL_COUNTER=FAIL_COUNTER+1"
fi
}
pushd ../source
echo "---Start autogen.sh---" echo "---Start autogen.sh---"
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh
@ -8,3 +32,176 @@ echo "--------------------"
./configure --disable-static --with-gtk=3.0 ./configure --disable-static --with-gtk=3.0
make check make check
check_return_value $?
popd
check_pkg "ibus"
check_pkg "m17n-db"
ibus-daemon -v -r -d
check_return_value $?
echo "give ibus-daemon some time to start properly."
sleep 5
for name in \
am:sera \
ar:kbd \
ar:translit \
as:inscript \
as:inscript2 \
as:itrans \
as:phonetic \
ath:phonetic \
bla:phonetic \
bn:disha \
bn:inscript \
bn:inscript2 \
bn:itrans \
bn:probhat \
bo:ewts \
bo:tcrc \
bo:wylie \
brx:inscript2 \
cr:western \
da:post \
doi:inscript2 \
dv:phonetic \
eo:h-fundamente \
eo:h-sistemo \
eo:plena \
eo:q-sistemo \
eo:vi-sistemo \
eo:x-sistemo \
fa:isiri \
fr:azerty \
grc:mizuochi \
gu:inscript \
gu:inscript2 \
gu:itrans \
gu:phonetic \
hi:inscript \
hi:inscript2 \
hi:itrans \
hi:optitransv2 \
hi:phonetic \
hi:remington \
hi:typewriter \
hi:vedmata \
hu:rovas-post \
ii:phonetic \
iu:phonetic \
kk:arabic \
km:yannis \
kn:inscript \
kn:inscript2 \
kn:itrans \
kn:kgp \
kn:optitransv2 \
kn:typewriter \
kok:inscript2 \
ks:inscript \
ks:kbd \
lo:lrt \
mai:inscript \
mai:inscript2 \
ml:enhanced-inscript \
ml:inscript \
ml:inscript2 \
ml:itrans \
ml:mozhi \
ml:remington \
ml:swanalekha \
mni:inscript2-beng \
mni:inscript2-mtei \
mr:inscript \
mr:inscript2 \
mr:itrans \
mr:phonetic \
mr:remington \
mr:typewriter \
ne:inscript2 \
ne:rom \
ne:rom-translit \
ne:trad \
ne:trad-ttf \
nsk:phonetic \
oj:phonetic \
or:inscript \
or:inscript2 \
or:itrans \
or:phonetic \
pa:anmollipi \
pa:inscript \
pa:inscript2 \
pa:itrans \
pa:jhelum \
pa:phonetic \
ps:phonetic \
ru:phonetic \
ru:translit \
ru:yawerty \
sa:IAST \
sa:harvard-kyoto \
sa:inscript2 \
sa:itrans \
sat:inscript2-deva \
sat:inscript2-olck \
sd:inscript \
sd:inscript2 \
si:phonetic-dynamic \
si:samanala \
si:sayura \
si:singlish \
si:sumihiri \
si:transliteration \
si:wijesekera \
sv:post \
t:latn-post \
t:latn-pre \
t:latn1-pre \
t:lsymbol \
t:math-latex \
t:rfc1345 \
t:ssymbol \
t:syrc-phonetic \
t:unicode \
ta:inscript \
ta:inscript2 \
ta:itrans \
ta:lk-renganathan \
ta:phonetic \
ta:tamil99 \
ta:typewriter \
ta:vutam \
tai:sonla-kbd \
te:apple \
te:inscript \
te:inscript2 \
te:itrans \
te:pothana \
te:rts \
te:sarala \
th:kesmanee \
th:pattachote \
th:tis820 \
ur:phonetic \
vi:han \
vi:nomtelex \
vi:nomvni \
vi:tcvn \
vi:telex \
vi:viqr \
vi:vni \
yi:yivo
do
echo "checking whether 'ibus-engine-m17n --xml' can list m17n:${name}:"
/usr/libexec/ibus-engine-m17n --xml 2>/dev/null | grep "<name>m17n:${name}</name>"
check_return_value $?
echo "checking whether ibus can list m17n:${name}:"
ibus list-engine --name-only | grep "m17n:${name}$"
check_return_value $?
done
exit ${FAIL_COUNTER}

View File

@ -19,8 +19,10 @@
- autoconf - autoconf
- automake - automake
- gettext-devel - gettext-devel
- ibus
- ibus-devel - ibus-devel
- gtk3-devel - gtk3-devel
- pkgconfig - pkgconfig
- libtool - libtool
- m17n-lib-devel - m17n-lib-devel
- m17n-db