#! /bin/sh
#
# Test for phrase search.
#
LOG=`pwd`/test-log
echo '  *** starting ' $0 >>$LOG

EXEC=no
case $LANG in 
        ja*)
                EXEC=yes
                ;;
esac
if [ $EXEC = 'no' ]
then
	echo "Skipping because of LANG($LANG) does not begin with ja: $0" >> $LOG
        exit 77
fi

# Check Jaapanese phrease searching.
cd ../src
./namazu '{ؿ ɲ}' ../tests/idx1 | fgrep '[ : 0 ]'
test $? -ne 0 && exit 0

exit 1
