From: Simon Marchi Date: Thu, 15 Nov 2012 14:29:42 +0000 (-0500) Subject: runtests: Make path of time binary configurable X-Git-Tag: v0.8.0~154 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=fce9a534217cc39db50bb546f2521cc4321df197;hp=fce9a534217cc39db50bb546f2521cc4321df197;p=urcu.git 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 Signed-off-by: Mathieu Desnoyers ---