From 4c01f5ad1ee26d836f731a5d5f2f6c0c9f025ba0 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 4 Nov 2011 13:59:52 +0100 Subject: [PATCH] Termlist block test --- test/test_termlist_block.cfg | 38 ++++++++++++++++++++++++++++++++++++++ test/test_termlist_block.sh | 28 ++++++++++++++++++++++++++++ test/test_termlist_block.urls | 11 +++++++++++ 3 files changed, 77 insertions(+) create mode 100644 test/test_termlist_block.cfg create mode 100644 test/test_termlist_block.res create mode 100755 test/test_termlist_block.sh create mode 100644 test/test_termlist_block.urls diff --git a/test/test_termlist_block.cfg b/test/test_termlist_block.cfg new file mode 100644 index 0000000..16425e2 --- /dev/null +++ b/test/test_termlist_block.cfg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_termlist_block.res b/test/test_termlist_block.res new file mode 100644 index 0000000..e69de29 diff --git a/test/test_termlist_block.sh b/test/test_termlist_block.sh new file mode 100755 index 0000000..e7b1203 --- /dev/null +++ b/test/test_termlist_block.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_termlist_block +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_termlist_block.urls b/test/test_termlist_block.urls new file mode 100644 index 0000000..07fd600 --- /dev/null +++ b/test/test_termlist_block.urls @@ -0,0 +1,11 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +http://localhost:9763/search.pz2?session=1&command=settings&full_text_target%5Bid_ocw%5D=NO&use_url_proxy%5Bid_ocw%5D=0&pz:preferred%5Bid_ocw%5D=1&pz:piggyback%5Bid_ocw%5D=1&pz:authentication%5Bid_ocw%5D=idtest%2Fidtest36&pz:cclmap%3Asu%5Bid_ocw%5D=u%3D21+s%3Dal&use_thumbnails%5Bid_ocw%5D=1&pz:requestsyntax%5Bid_ocw%5D=xml&pz:name%5Bid_ocw%5D=MIT+OpenCourseWare&pz:cclmap%3Aissn%5Bid_ocw%5D=u%3D8&pz:cclmap%3Ati%5Bid_ocw%5D=u%3D4+s%3Dal&pz:cclmap%3Aau%5Bid_ocw%5D=u%3D1003+s%3Dal&pz:xslt%5Bid_ocw%5D=cf.xsl&pz:cclmap%3Aterm%5Bid_ocw%5D=u%3D1016+t%3Dl%2Cr+s%3Dal+2%3D102&pz:cclmap%3Aisbn%5Bid_ocw%5D=u%3D7&pz:queryencoding%5Bid_ocw%5D=UTF-8&pz:url%5Bid_ocw%5D=connect.indexdata.com%3A9000%2Fmit_opencourseware +http://localhost:9763/search.pz2?session=1&command=search&query=su%3D%22computer%22 +4 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&block=1&name=xtargets%2Cauthor%2Csubject%2Cdate +http://localhost:9763/search.pz2?session=1&command=settings&full_text_target%5Bid_solr%5D=NO&pz:termlist_term_count%5Bid_solr%5D=10&use_url_proxy%5Bid_solr%5D=0&pz:piggyback%5Bid_solr%5D=1&pz:preferred%5Bid_solr%5D=0&pz:block_timeout%5Bid_solr%5D=2&pz:cclmap%3Asu%5Bid_solr%5D=1%3Dsubject&pz:sru%5Bid_solr%5D=solr&use_thumbnails%5Bid_solr%5D=0&pz:name%5Bid_solr%5D=LOC+%28SOLR%29&pz:cclmap%3Aissn%5Bid_solr%5D=u%3D8&pz:cclmap%3Ati%5Bid_solr%5D=1%3Dtitle&pz:cclmap%3Aau%5Bid_solr%5D=1%3Dauthor&pz:xslt%5Bid_solr%5D=solr-pz2.xsl&pz:cclmap%3Aterm%5Bid_solr%5D=1%3Dtext+s%3Dal&pz:cclmap%3Aisbn%5Bid_solr%5D=1%3Disbn&pz:queryencoding%5Bid_solr%5D=UTF-8&pz:url%5Bid_solr%5D=ocs-test.indexdata.com%2Fsolr%2Fselect +http://localhost:9763/search.pz2?session=1&command=search&query=su%3D%22computer%22 +4 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&block=1&name=xtargets%2Cauthor%2Csubject%2Cdate -- 1.7.10.4