2015-11-08 14:28:05 +01:00
|
|
|
#!/bin/csh -f
|
|
|
|
|
2015-11-09 01:15:14 +01:00
|
|
|
setenv ORG_HOME `dirname $0`/../../..
|
|
|
|
source $ORG_HOME/scripts/csh_init.sh
|
2015-11-08 14:28:05 +01:00
|
|
|
|
2015-11-09 01:15:14 +01:00
|
|
|
echo "+ testing Normalize"
|
|
|
|
|
|
|
|
`dirname $0`/../bin/go_normalize.sh test.fst > test.bak
|
2015-11-08 14:28:05 +01:00
|
|
|
|
|
|
|
diff -q test.bak test.ref >& /dev/null
|
|
|
|
|
|
|
|
set stat = $status
|
|
|
|
|
|
|
|
if ($stat == 0) then
|
2015-11-09 01:15:14 +01:00
|
|
|
echo "+ $VTC[3]Normalize test Ok$VTC[1]"
|
2015-11-08 14:28:05 +01:00
|
|
|
\rm -r test.bak
|
|
|
|
else
|
2015-11-09 01:15:14 +01:00
|
|
|
echo "* $VTC[2]Normalize test Failure$VTC[1]"
|
2015-11-08 14:28:05 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
exit $stat
|