3 # This test script first runs the FreeTTS with our first utterance file,
4 # dumps the wave in text form, and compares (diff) it with our standard
5 # wave form file for our first utterance (first.wave.txt). This test will
6 # tell you how many lines differ from the standard wave form file.
8 # (Reminder: our 'first utterance file' is "Hello world. This is Duke
9 # coming to you from inside the java virtual machine. I'm happy to have
10 # a voice because I've been meaning to tell you how much I care.")
14 #REF=../../../../../data/alice2.flite.v1.0-beta.rel
18 egrep "[ ].$1[:=]." $REF | grep -v Relation > t.$1.1
19 egrep "[ ].$1[:=]." $NEW | grep -v Relation > t.$1.2
20 echo $1 `diff t.$1.1 t.$1.2 | wc -l ` differences of `wc -l <t.$1.1` | awk '
21 $2 == 0 { printf("%40.40s. %s\n", $0, "Test Passed."); }
22 $2 != 0 { printf("%40.40s. %s\n", $0, "Test FAILED."); }