From f17778f00ba1f18d026ab98c2dac418883eb7069 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 17 Aug 2010 14:29:58 +0200 Subject: [PATCH] Test of SOLR target --- test/solr-pz2.xsl | 37 +++++++++++++++++++++++++++++++++++++ test/test_solr.cfg | 39 +++++++++++++++++++++++++++++++++++++++ test/test_solr.sh | 28 ++++++++++++++++++++++++++++ test/test_solr_urls | 7 +++++++ 4 files changed, 111 insertions(+) create mode 100644 test/solr-pz2.xsl create mode 100644 test/test_solr.cfg create mode 100755 test/test_solr.sh create mode 100644 test/test_solr_urls diff --git a/test/solr-pz2.xsl b/test/solr-pz2.xsl new file mode 100644 index 0000000..4267f99 --- /dev/null +++ b/test/solr-pz2.xsl @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_solr.cfg b/test/test_solr.cfg new file mode 100644 index 0000000..65287b7 --- /dev/null +++ b/test/test_solr.cfg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_solr.sh b/test/test_solr.sh new file mode 100755 index 0000000..4e96d20 --- /dev/null +++ b/test/test_solr.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# srcdir might be set by make +srcdir=${srcdir:-"."} + +#TODO set up solr target. For now use donut +#F=../solr/client.sh +# +#rm -f solr.pid +#$F -l solr.log -p ztest.pid -D @:9999 +#sleep 1 +#if test ! -f ztest.pid; then +# echo "yaz-ztest could not be started" +# exit 0 +#fi + +${srcdir}/run_pazpar2.sh test_solr +E=$? + +#kill `cat ztest.pid` +#rm ztest.pid +exit $E + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/test_solr_urls b/test/test_solr_urls new file mode 100644 index 0000000..f2fa4ad --- /dev/null +++ b/test/test_solr_urls @@ -0,0 +1,7 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +http://localhost:9763/search.pz2?session=1&command=settings&pz:sru%5Bdonut:8983%2Fsolr%2Fselect%5D=solr&pz%3Aname%5Bdonut%3A8983%2Fsolr%2Fselect%5D=SOLR+Test&pz%3Acclmap%3Ati%5Bdonut%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Acclmap%3Asu%5Bdonut%3A8983%2Fsolr%2Fselect%5D=1%3Dsubject&pz%3Acclmap%3Aau%5Bdonut%3A8983%2Fsolr%2Fselect%5D=1%3Dauthor&pz%3Acclmap%3Aisbn%5Bdonut%3A8983%2Fsolr%2Fselect%5D=1%3Disbn&pz%3Acclmap%3Aterm%5Bdonut%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Axslt%5Bdonut%3A8983%2Fsolr%2Fselect%5D=solr-pz2.xsl&pz%3Aqueryencoding%5Bdonut%3A8983%2Fsolr%2Fselect%5D=UTF-8 +http://localhost:9763/search.pz2?session=1&command=search&query=su%3D%22computer%22 +http://localhost:9763/search.pz2?session=1&command=show&block=1 +http://localhost:9763/search.pz2?session=1&command=bytarget +http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate + -- 1.7.10.4