From: Adam Dickmeiss Date: Thu, 3 Jul 2014 13:21:39 +0000 (+0200) Subject: test_perf.sh fetches 100 records from yaz-ztest X-Git-Tag: v1.7.1~18 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1a1be962f81d253d5e58423f805f5fb6c68a3e06;p=pazpar2-moved-to-github.git test_perf.sh fetches 100 records from yaz-ztest Part of PAZ-944 --- diff --git a/test/Makefile.am b/test/Makefile.am index f33c0b0..8976541 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,7 +4,7 @@ solr_tests = test_solr.sh test_termlist_block.sh test_limit_limitmap.sh test_sort.sh check_SCRIPTS = test_http.sh test_icu.sh test_post.sh \ test_settings.sh test_turbomarcxml.sh test_facets.sh \ - test_url.sh test_filter.sh test_sru.sh \ + test_url.sh test_filter.sh test_sru.sh test_perf.sh \ $(solr_tests) EXTRA_DIST = run_pazpar2.sh marc21_test.xsl tmarc.xsl solr-pz2.xsl \ @@ -34,6 +34,7 @@ EXTRA_DIST = run_pazpar2.sh marc21_test.xsl tmarc.xsl solr-pz2.xsl \ ztest_localhost_settings.xml test_termlist_block_settings_2.xml \ test_facets_settings_1.xml test_facets_settings_2.xml \ test_sru.cfg sru_service.xml \ + test_perf.cfg \ $(check_SCRIPTS) TESTS = $(check_SCRIPTS) diff --git a/test/test_perf.sh b/test/test_perf.sh new file mode 100755 index 0000000..bf0e59d --- /dev/null +++ b/test/test_perf.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TEST=`basename $0 .sh` +# srcdir might be set by make +srcdir=${srcdir:-"."} + +exec ${srcdir}/run_pazpar2.sh --ztest --icu --perf $TEST + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/test_perf.urls b/test/test_perf.urls new file mode 100644 index 0000000..60a342c --- /dev/null +++ b/test/test_perf.urls @@ -0,0 +1,5 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +ztest_localhost_settings.xml http://localhost:9763/search.pz2?session=1&command=settings +http://localhost:9763/search.pz2?session=1&command=search&query=100+and+computer +http://localhost:9763/search.pz2?session=1&command=show&block=1 +http://localhost:9763/search.pz2?session=1&command=termlist diff --git a/test/test_perf_1.res b/test/test_perf_1.res new file mode 100644 index 0000000..c09ee34 --- /dev/null +++ b/test/test_perf_1.res @@ -0,0 +1,3 @@ + +OK1150000 + \ No newline at end of file diff --git a/test/test_perf_2.res b/test/test_perf_2.res new file mode 100644 index 0000000..42534e3 --- /dev/null +++ b/test/test_perf_2.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_perf_3.res b/test/test_perf_3.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_perf_3.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_perf_4.res b/test/test_perf_4.res new file mode 100644 index 0000000..dd96735 --- /dev/null +++ b/test/test_perf_4.res @@ -0,0 +1,260 @@ + +OK +1 +39 +100 +0 +20 + + Internet world + 1992 + Title from caption + + Internet world + 1992 + Title from caption + + 1 + 152547 + content: title internet world + + + How to program a computer + Jack Collins + + How to program a computer + Jack Collins + + + How to program a computer + Jack Collins + + 2 + 91528 + content: title how to program a computer author jack collins + + + 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 + + 1 + 76273 + content: title the computer bible + + + 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 + + 1 + 57205 + content: title computer science technology + + + How to program a computer + Jack C24 + + How to program a computer + Jack C24 + + 1 + 45764 + content: title how to program a computer author jack c24 + + + How to program a computer + Jack C25 + + How to program a computer + Jack C25 + + 1 + 45764 + content: title how to program a computer author jack c25 + + + How to program a computer + Jack C26 + + How to program a computer + Jack C26 + + 1 + 45764 + content: title how to program a computer author jack c26 + + + How to program a computer + Jack C27 + + How to program a computer + Jack C27 + + 1 + 45764 + content: title how to program a computer author jack c27 + + + How to program a computer + Jack C28 + + How to program a computer + Jack C28 + + 1 + 45764 + content: title how to program a computer author jack c28 + + + How to program a computer + Jack C29 + + How to program a computer + Jack C29 + + 1 + 45764 + content: title how to program a computer author jack c29 + + + How to program a computer + Jack C30 + + How to program a computer + Jack C30 + + 1 + 45764 + content: title how to program a computer author jack c30 + + + How to program a computer + Jack C31 + + How to program a computer + Jack C31 + + 1 + 45764 + content: title how to program a computer author jack c31 + + + How to program a computer + Jack C32 + + How to program a computer + Jack C32 + + 1 + 45764 + content: title how to program a computer author jack c32 + + + How to program a computer + Jack C33 + + How to program a computer + Jack C33 + + 1 + 45764 + content: title how to program a computer author jack c33 + + + How to program a computer + Jack C34 + + How to program a computer + Jack C34 + + 1 + 45764 + content: title how to program a computer author jack c34 + + + How to program a computer + Jack C35 + + How to program a computer + Jack C35 + + 1 + 45764 + content: title how to program a computer author jack c35 + + + How to program a computer + Jack C36 + + How to program a computer + Jack C36 + + 1 + 45764 + content: title how to program a computer author jack c36 + + + How to program a computer + Jack C37 + + How to program a computer + Jack C37 + + 1 + 45764 + content: title how to program a computer author jack c37 + + + How to program a computer + Jack C38 + + How to program a computer + Jack C38 + + 1 + 45764 + content: title how to program a computer author jack c38 + + + How to program a computer + Jack C39 + + How to program a computer + Jack C39 + + 1 + 45764 + content: title how to program a computer author jack c39 + + \ No newline at end of file diff --git a/test/test_perf_5.res b/test/test_perf_5.res new file mode 100644 index 0000000..bad0324 --- /dev/null +++ b/test/test_perf_5.res @@ -0,0 +1,61 @@ + +0 + +Jack Collins2 +Adam, James1 +Carter, Bill1 +Englund, Carl R1 +Jack C1001 +Jack C241 +Jack C251 +Jack C261 +Jack C271 +Jack C281 +Jack C291 +Jack C301 +Jack C311 +Jack C321 +Jack C331 + + +19773 +19712 +19742 +19802 +19872 +19912 +19932 +19681 +19721 +19731 +19841 +19861 +19921 + + +Bible5 +Internet (Computer network)2 +United States2 +Bible. O.T1 +Bible. O.T. Deuteronomy1 +Cartography1 +Community colleges1 +Computer Systems1 +Computer networks1 +Computers1 +Demonstration centers in education1 +Dropouts1 +Educational innovations1 +Educational technology1 +FEDLINK (Network)1 + + + +localhost:9999/db1 +db1 +100 +Client_Idle +0 + + + \ No newline at end of file