Merge branch 'f40' into c10s
This commit is contained in:
commit
2fd0a9f3f6
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
5
plans/test.fmf
Normal file
5
plans/test.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
summary: Basic smoke test
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
for dir in annotations annotationsDerived; do
|
|
||||||
for xml in /usr/share/unicode/cldr/common/$dir/*.xml; do
|
|
||||||
echo xmllint --noout --valid --postvalid $xml
|
|
||||||
xmllint --noout --valid --postvalid $xml
|
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
echo "ERROR"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
- hosts: localhost
|
|
||||||
vars:
|
|
||||||
- artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
remote_user: root
|
|
||||||
roles:
|
|
||||||
- role: standard-test-basic
|
|
||||||
required_packages:
|
|
||||||
- cldr-emoji-annotation
|
|
||||||
- libxml2
|
|
||||||
tests:
|
|
||||||
- runtest:
|
|
||||||
dir: .
|
|
||||||
run: ./runtest.sh
|
|
||||||
|
|
6
tests/validation/main.fmf
Normal file
6
tests/validation/main.fmf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
summary: Lint check for annotation files
|
||||||
|
test: ./test.sh
|
||||||
|
framework: beakerlib
|
||||||
|
require:
|
||||||
|
- cldr-emoji-annotation
|
||||||
|
- libxml2
|
24
tests/validation/test.sh
Executable file
24
tests/validation/test.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
FAILED=0
|
||||||
|
for dir in annotations annotationsDerived; do
|
||||||
|
for xml in /usr/share/unicode/cldr/common/$dir/*.xml; do
|
||||||
|
echo xmllint --noout --valid --postvalid $xml
|
||||||
|
xmllint --noout --valid --postvalid $xml
|
||||||
|
if test $? -ne 0 ; then
|
||||||
|
FAILED=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test $FAILED -ne 0 ; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlAssertEquals "lint result" $FAILED 0
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalEnd
|
Loading…
Reference in New Issue
Block a user