runtests: Make path of time binary configurable
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 15 Nov 2012 14:29:42 +0000 (09:29 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Nov 2012 14:29:42 +0000 (09:29 -0500)
commitfce9a534217cc39db50bb546f2521cc4321df197
tree9e6737a4ac719996633306af75bdd0eaff5e44c1
parentf864c15d3148f14019e837544213314db0198ccb
runtests: Make path of time binary configurable

I work on a platform that does not come with a time program. This patch
makes it possible to specify the path of the time binary or not use it
if none is available.

If the URCU_TEST_TIME_BIN environment variable exists and is executable,
it is used. Otherwise it tries with /usr/bin/time, the most common
location. If it is not there, the tests are ran without timing info.

[ Edit by Mathieu Desnoyers: use "." instead of "source" (no bash-ism),
  edit commit about check for emptiness vs definition to match the code. ]

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/common.sh [new file with mode: 0644]
tests/runtests-batch.sh
tests/runtests.sh
This page took 0.025846 seconds and 4 git commands to generate.