tests: include UTF8 output test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1074715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-02-25 22:07:34 +00:00
parent da63e593ee
commit 0a2c31b75d
1 changed files with 8 additions and 0 deletions

View File

@ -81,3 +81,11 @@ else
echo "ERROR: HTTP POST + URL params is not accepting UTF-8 beyond the basic multilingual plane" echo "ERROR: HTTP POST + URL params is not accepting UTF-8 beyond the basic multilingual plane"
fi fi
curl "$URL/select?q=$URL_UTF8&echoParams=explicit&wt=json" 2> /dev/null | od -tx1 -w1000 | sed 's/ //g' | grep 'f4808198' > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Response can return UTF-8 beyond the basic multilingual plane"
else
echo "ERROR: Response can't return UTF-8 beyond the basic multilingual plane"
fi