projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: Pass PERF_PROG rather than option --perf
[pazpar2-moved-to-github.git]
/
test
/
test_perf.sh
diff --git
a/test/test_perf.sh
b/test/test_perf.sh
index
bf0e59d
..
c6fd22c
100755
(executable)
--- 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:-"."}
# 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
# Local Variables:
# mode:shell-script