X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_perf.sh;fp=test%2Ftest_perf.sh;h=c6fd22c9ce825278c7dbe7f53a774800f4e2549f;hb=5aad7dab52c5cfc82a4232674de5c56fc052ce75;hp=bf0e59dc6c5fcc50b4028b10f33ad5a0d6ab3ff1;hpb=0330a6fe4768e4f582d01e1e84b7d822b148ae8e;p=pazpar2-moved-to-github.git diff --git a/test/test_perf.sh b/test/test_perf.sh index bf0e59d..c6fd22c 100755 --- a/test/test_perf.sh +++ b/test/test_perf.sh @@ -4,7 +4,12 @@ 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 +exec ${srcdir}/run_pazpar2.sh --ztest --icu $TEST # Local Variables: # mode:shell-script