X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_perf.sh;h=5fdafea97551652fa690904ebf544fa2a199bb48;hb=376322f0e5d56c9dcc23d0f7d15c90eb58342326;hp=bf0e59dc6c5fcc50b4028b10f33ad5a0d6ab3ff1;hpb=1a1be962f81d253d5e58423f805f5fb6c68a3e06;p=pazpar2-moved-to-github.git diff --git a/test/test_perf.sh b/test/test_perf.sh index bf0e59d..5fdafea 100755 --- a/test/test_perf.sh +++ b/test/test_perf.sh @@ -4,7 +4,13 @@ TEST=`basename $0 .sh` # srcdir might be set by make srcdir=${srcdir:-"."} -exec ${srcdir}/run_pazpar2.sh --ztest --icu --perf $TEST +if test -z "$PERF_PROG"; then + if test -x /usr/bin/time; then + PERF_PROG="/usr/bin/time -p" + fi +fi +export PERF_PROG +exec ${srcdir}/run_pazpar2.sh --ztest --icu $TEST # Local Variables: # mode:shell-script