X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fclient.sh;h=ecf2e6f847cbde7b41a94042b710748c60a79d06;hb=f451628ce616009071ab80cbe201cc7a3f60702d;hp=aced882a4924cd52fa594eafbca50cf6b56d9272;hpb=9acc1c1db53cec2c6ca8406f8dc62e958e939ac8;p=pazpar2-moved-to-github.git diff --git a/perf/bash/client.sh b/perf/bash/client.sh index aced882..ecf2e6f 100755 --- a/perf/bash/client.sh +++ b/perf/bash/client.sh @@ -8,11 +8,18 @@ PORT=$2 if test -z "$PORT"; then PORT=9004 fi - - +SERVICE=$3 +if test -z "$SERVICE"; then + SERVICE=perf +fi +SETTINGS=$4 +WHAT=water H="http://localhost:${PORT}/search.pz2" -wget -q -O $OF.init.xml "$H/?command=init&service=perf_t&extra=$OF" +wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" S=`xsltproc get_session.xsl $OF.init.xml` -wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S" +if [ "$SETTINGS" != "" ] ; then + wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS" +fi +wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S" sleep 1 -wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1" +wget -q -O $OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1"