1#!/bin/sh
2. ./testfuncs.sh
3
4echo "LIVEPRETEND FSG TEST"
5echo "YOU SHOULD SEE THE RECOGNITION RESULT 'K P I T T S B U R G H A' (don't panic)"
6
7tmpout="test-livepretend-fsg.out"
8
9rm -f $tmpout
10
11run_program sphinx3_livepretend \
12$an4lm/an4.ctl \
13$an4lm \
14$builddir/model/lm/an4/args.an4.test.fsg > $tmpout 2>&1
15
16grep "FWDVIT" $tmpout
17grep "FWDXCT" $tmpout
18
19if grep "FWDVIT" $tmpout |grep "P I T T S B U R G H" >/dev/null 2>&1; then
20    pass "LIVEPRETEND FSG test"
21else
22    fail "LIVEPRETEND FSG test"
23fi
24