Performance tests - bash based
[pazpar2-moved-to-github.git] / perf / bash / client.sh
1 #!/bin/bash
2 O=$1
3 if test -z "$O"; then
4         O=1
5 fi
6 H='http://localhost:9004/search.pz2'
7 wget -q -O $O.init.xml "$H/?command=init"
8 S=`xsltproc get_session.xsl $O.init.xml`
9 wget -q -O $O.search.xml "$H?command=search&query=utah&session=$S"
10 sleep 0.5
11 wget -q -O $O.show.xml "$H?command=show&session=$S"