From: Adam Dickmeiss Date: Sun, 8 Aug 2010 19:22:28 +0000 (+0200) Subject: Add check for CCL syntax error + expected results X-Git-Tag: v1.4.4~5 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=798ce36d51607d7e0196344424c2a7bba9f00a21;p=pazpar2-moved-to-github.git Add check for CCL syntax error + expected results test_http_urls includes check for CCL syntax error as well as zero hits. test_http_52..test_http_57.res are expected results. --- diff --git a/test/test_http_52.res b/test/test_http_52.res new file mode 100644 index 0000000..1dc284e --- /dev/null +++ b/test/test_http_52.res @@ -0,0 +1,2 @@ + +OK81 \ No newline at end of file diff --git a/test/test_http_53.res b/test/test_http_53.res new file mode 100644 index 0000000..42534e3 --- /dev/null +++ b/test/test_http_53.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_http_54.res b/test/test_http_54.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_http_54.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_http_55.res b/test/test_http_55.res new file mode 100644 index 0000000..d3b889f --- /dev/null +++ b/test/test_http_55.res @@ -0,0 +1,9 @@ + + +OK +0 +0 +0 +0 +0 + diff --git a/test/test_http_56.res b/test/test_http_56.res new file mode 100644 index 0000000..e2db1ca --- /dev/null +++ b/test/test_http_56.res @@ -0,0 +1,2 @@ + +query \ No newline at end of file diff --git a/test/test_http_57.res b/test/test_http_57.res new file mode 100644 index 0000000..d3b889f --- /dev/null +++ b/test/test_http_57.res @@ -0,0 +1,9 @@ + + +OK +0 +0 +0 +0 +0 + diff --git a/test/test_http_urls b/test/test_http_urls index 1862126..1f68455 100644 --- a/test/test_http_urls +++ b/test/test_http_urls @@ -51,5 +51,7 @@ http://localhost:9763/search.pz2?session=7&command=search&query=greece http://localhost:9763/search.pz2?session=6&command=record&id=title+computer+processing+of+dynamic+images+from+an+anger+scintillation+camera+author+medium+book&offset=0 http://localhost:9763/search.pz2?command=init http://localhost:9763/search.pz2?session=8&command=settings&pz:name%5Bz3950.indexdata.com%2Fmarc%5D=marc&pz:requestsyntax%5Bz3950.indexdata.com%2Fmarc%5D=usmarc&pz:nativesyntax%5Bz3950.indexdata.com%2Fmarc%5D=iso2709&pz:xslt%5Bz3950.indexdata.com%2Fmarc%5D=marc21%5Ftest.xsl&pz:recordfilter%5Bz3950.indexdata.com%2Fmarc%5D=date -http://localhost:9763/search.pz2?session=3&command=search&query=xyzzyz -1 http://localhost:9763/search.pz2?session=6&command=show&block=1 \ No newline at end of file +http://localhost:9763/search.pz2?session=8&command=search&query=xyzzyz +2 http://localhost:9763/search.pz2?session=8&command=show&block=1 +http://localhost:9763/search.pz2?session=8&command=search&query=a+and +1 http://localhost:9763/search.pz2?session=8&command=show&block=1