Add tests on SSML parsing

A corpus of SSML input files will also be needed for fuzzing.
https://github.com/espeak-ng/espeak-ng/issues/407
This commit is contained in:
Sascha Brawer
2018-03-02 11:32:36 +01:00
parent 8c41f6bd0c
commit 7e669f1812
11 changed files with 106 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
test_ssml() {
INPUT=$1
echo "testing ${INPUT}"
cp $(dirname $INPUT)/$(basename ${INPUT%.*}).expected expected.txt
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
src/espeak-ng -m -v en-US --ipa=2 -f ${INPUT} > actual.txt
diff expected.txt actual.txt || exit 1
}
for i in `ls tests/ssml/*.ssml` ; do test_ssml $i ; done