File: test-sphinx_jsgf2fsg.sh

package info (click to toggle)
sphinxbase 0.8%2B5prealpha%2B1-21
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 10,672 kB
  • sloc: ansic: 28,813; sh: 11,829; makefile: 699; python: 338; perl: 121; yacc: 93; lex: 50
file content (17 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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