From: Dennis Schafroth Date: Tue, 27 Jul 2010 11:39:04 +0000 (+0200) Subject: New tests for facets X-Git-Tag: v1.4.4~28 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=8113b26bcf193809ba51091b2dcd964b46dc749d;p=pazpar2-moved-to-github.git New tests for facets --- diff --git a/test/test_facets.cfg b/test/test_facets.cfg new file mode 100644 index 0000000..65287b7 --- /dev/null +++ b/test/test_facets.cfg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_facets.sh b/test/test_facets.sh new file mode 100755 index 0000000..9633012 --- /dev/null +++ b/test/test_facets.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# + +# srcdir might be set by make +srcdir=${srcdir:-"."} + +yaz-ztest -l ztest.log @:9999 & +ZTEST_PID=$! +echo "ZTEST PID: $ZTEST_PID" + +# Test using test_http.cfg +${srcdir}/run_pazpar2.sh test_facets + +kill $ZTEST_PID + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/test_facets_1.res b/test/test_facets_1.res new file mode 100644 index 0000000..81ff9ff --- /dev/null +++ b/test/test_facets_1.res @@ -0,0 +1,2 @@ + +OK11 \ No newline at end of file diff --git a/test/test_facets_2.res b/test/test_facets_2.res new file mode 100644 index 0000000..42534e3 --- /dev/null +++ b/test/test_facets_2.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_facets_3.res b/test/test_facets_3.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_facets_3.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_facets_4.res b/test/test_facets_4.res new file mode 100644 index 0000000..1e4328b --- /dev/null +++ b/test/test_facets_4.res @@ -0,0 +1,82 @@ + + +OK +0 +6 +7 +0 +6 + + +How to program a computer +Jack Collins +How to program a computer +Jack Collins + +How to program a computer +Jack Collins +2 +36996 +title how to program a computer author jack collins + + + +Computer science & technology +proceedings of a workshop held at the National Bureau of Standards, Gaithersburg, MD, June 3-4, 1976 +1977 +Computer science & technology +proceedings of a workshop held at the National Bureau of Standards, Gaithersburg, MD, June 3-4, 1976 +1977 +30830 +title computer science technology + + + +The Computer Bible +1973-1980 +Vols. 2, 8: Missoula, Mont. : Published by Scholars Press for Biblical Research Associates +The Computer Bible +1973-1980 +Hebrew and Greek; introductions in English +Vols. 2, 8: Missoula, Mont. : Published by Scholars Press for Biblical Research Associates +30830 +title the computer bible + + + +The Puget Sound Region +a portfolio of thematic computer maps +1974 +Mairs, John W +Scale of maps ca. 1:1,000,000 +The Puget Sound Region +a portfolio of thematic computer maps +1974 +Mairs, John W +Scale of maps ca. 1:1,000,000 +12845 +title the puget sound region author mairs john w + + + +Computer processing of dynamic images from an Anger scintillation camera +the proceedings of a workshop +1974 +Computer processing of dynamic images from an Anger scintillation camera +the proceedings of a workshop +1974 +9249 +title computer processing of dynamic images from an anger scintillation camera + + + +Reconstruction tomography in diagnostic radiology and nuclear medicine +proceedings of the workshop +1977 +Reconstruction tomography in diagnostic radiology and nuclear medicine +proceedings of the workshop +1977 +0 +title reconstruction tomography in diagnostic radiology and nuclear medicine + + diff --git a/test/test_facets_5.res b/test/test_facets_5.res new file mode 100644 index 0000000..8b8a807 --- /dev/null +++ b/test/test_facets_5.res @@ -0,0 +1,9 @@ + +OK +localhost:9999/db1 +db1 +7 +0 +7 +Client_Idle + \ No newline at end of file diff --git a/test/test_facets_6.res b/test/test_facets_6.res new file mode 100644 index 0000000..28e0267 --- /dev/null +++ b/test/test_facets_6.res @@ -0,0 +1,28 @@ + +0 + + +localhost:9999/db1 +db1 +7 +Client_Idle +0 + + + +author0100 +author190 +author280 +author370 +author460 + + + + +date0100 +date190 +date280 +date370 +date460 + + diff --git a/test/test_facets_urls b/test/test_facets_urls new file mode 100644 index 0000000..a2bbb9b --- /dev/null +++ b/test/test_facets_urls @@ -0,0 +1,6 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +http://localhost:9763/search.pz2?session=1&command=settings&pz:name%5Blocalhost:9999%2Fdb1%5D=db1&pz:requestsyntax%5Blocalhost:9999%2Fdb1%5D=usmarc&pz:nativesyntax%5Blocalhost:9999%2Fdb1%5D=txml&pz:xslt%5Blocalhost:9999%2Fdb1%5D=tmarc.xsl&pz:termlist_term_count%5Blocalhost:9999%2Fdb1%5D=5 +http://localhost:9763/search.pz2?session=1&command=search&query=computer +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%2Ctitle%2Cdate