From 4e87009b09fe60296d7edd1375707165a5c645e0 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 16 Aug 2010 13:52:28 +0200 Subject: [PATCH] Add test for no target facets, e.g. backwards compatibility Downgrade facet test to run with yaz 4.0.11 (devl only, but not tested). Revert to yaz 4.0.12 as soon as released. --- test/test_facets.sh | 2 +- test/test_facets_20.res | 2 ++ test/test_facets_21.res | 2 ++ test/test_facets_22.res | 2 ++ test/test_facets_23.res | 22 ++++++++++++++++++++++ test/test_facets_24.res | 44 ++++++++++++++++++++++++++++++++++++++++++++ test/test_facets_urls | 5 +++++ 7 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 test/test_facets_20.res create mode 100644 test/test_facets_21.res create mode 100644 test/test_facets_22.res create mode 100644 test/test_facets_23.res create mode 100644 test/test_facets_24.res diff --git a/test/test_facets.sh b/test/test_facets.sh index 506dd64..1ad053c 100755 --- a/test/test_facets.sh +++ b/test/test_facets.sh @@ -10,7 +10,7 @@ F='' for p in $PATH; do if test -x $p/yaz-ztest -a -x $p/yaz-config; then VERSION=`$p/yaz-config -V|awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` - if test $VERSION -ge 4000012; then + if test $VERSION -ge 4000011; then F=$p/yaz-ztest break fi diff --git a/test/test_facets_20.res b/test/test_facets_20.res new file mode 100644 index 0000000..2b3989e --- /dev/null +++ b/test/test_facets_20.res @@ -0,0 +1,2 @@ + +OK21 \ No newline at end of file diff --git a/test/test_facets_21.res b/test/test_facets_21.res new file mode 100644 index 0000000..42534e3 --- /dev/null +++ b/test/test_facets_21.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_facets_22.res b/test/test_facets_22.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_facets_22.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_facets_23.res b/test/test_facets_23.res new file mode 100644 index 0000000..7d46c04 --- /dev/null +++ b/test/test_facets_23.res @@ -0,0 +1,22 @@ + + +OK +1 +1 +2 +0 +1 + + +How to program a computer +Jack Collins +How to program a computer +Jack Collins + +How to program a computer +Jack Collins +2 +240000 +title how to program a computer author jack collins + + diff --git a/test/test_facets_24.res b/test/test_facets_24.res new file mode 100644 index 0000000..fa09272 --- /dev/null +++ b/test/test_facets_24.res @@ -0,0 +1,44 @@ + +0 + + +z3950.indexdata.com/marc +Index Data MARC test server +10 +Client_Idle +0 + + +localhost:9999/db2 +db2 +2 +Client_Idle +0 + + + +Jack Collins4 +Mairs, John W1 +Wood, Helen M1 +Englund, Carl R1 + + +Community colleges1 +Scintillation cameras1 +Imaging systems in medicine1 +Cartography1 +Tomography1 +Optical pattern recognition1 +Computers1 +Railroads1 +Universities and colleges1 +Radioisotope scanning1 + + +19773 +19742 +19712 +19801 +19731 + + diff --git a/test/test_facets_urls b/test/test_facets_urls index 06911f7..79cdffc 100644 --- a/test/test_facets_urls +++ b/test/test_facets_urls @@ -17,3 +17,8 @@ http://localhost:9763/search.pz2?session=1&command=show http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate 10 http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate http://localhost:9763/search.pz2?session=1&command=bytarget +http://localhost:9763/search.pz2?command=init +http://localhost:9763/search.pz2?session=2&command=settings&pz:name%5Blocalhost:9999%2Fdb2%5D=db2&pz:requestsyntax%5Blocalhost:9999%2Fdb2%5D=usmarc&pz:nativesyntax%5Blocalhost:9999%2Fdb2%5D=txml&pz:xslt%5Blocalhost:9999%2Fdb2%5D=tmarc.xsl +http://localhost:9763/search.pz2?session=2&command=search&query=computer +http://localhost:9763/search.pz2?session=2&command=show&block=1 +http://localhost:9763/search.pz2?session=2&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate -- 1.7.10.4