rhubarb-lip-sync/rhubarb/lib/sphinxbase-rev13216/test/regression/test-sphinx_jsgf2fsg.sh

18 lines
429 B
Bash
Raw Permalink Normal View History

2015-10-19 19:45:08 +00:00
#!/bin/sh
. ./testfuncs.sh
echo "JSGF2FSG TEST"
rules="test.rightRecursion test.nestedRightRecursion test.kleene test.nulltest test.command"
tmpout="test-jsgf2fsg.out"
rm -f $tmpout
JSGF_PATH=$tests/regression
export JSGF_PATH
for r in $rules; do
run_program sphinx_jsgf2fsg/sphinx_jsgf2fsg \
-jsgf $tests/regression/test.gram -toprule $r -fsg $r.out 2>>$tmpout
compare_table $r $r.out $tests/regression/$r.fsg
done