Initial import to Tizen
[profile/ivi/sphinxbase.git] / test / regression / test-sphinx_jsgf2fsg.sh
1 #!/bin/sh
2 . ./testfuncs.sh
3
4 echo "JSGF2FSG TEST"
5 rules="test.rightRecursion test.nestedRightRecursion test.kleene test.nulltest test.command"
6
7 tmpout="test-jsgf2fsg.out"
8 rm -f $tmpout
9
10 JSGF_PATH=$tests/regression
11 export JSGF_PATH
12 for r in $rules; do
13     run_program sphinx_jsgf2fsg/sphinx_jsgf2fsg \
14         $tests/regression/test.gram $r > $r.out 2>>$tmpout
15     compare_table $r $r.out $tests/regression/$r.fsg
16 done
17