You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/02/25 23:07:34 UTC

svn commit: r1074715 - /lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh

Author: yonik
Date: Fri Feb 25 22:07:34 2011
New Revision: 1074715

URL: http://svn.apache.org/viewvc?rev=1074715&view=rev
Log:
tests: include UTF8 output test

Modified:
    lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh

Modified: lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh?rev=1074715&r1=1074714&r2=1074715&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh (original)
+++ lucene/dev/trunk/solr/example/exampledocs/test_utf8.sh Fri Feb 25 22:07:34 2011
@@ -81,3 +81,11 @@ else
   echo "ERROR: HTTP POST + URL params is not accepting UTF-8 beyond the basic multilingual plane"
 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
+
+