From be991ba4a7f8309b67f1f1f9284f41e93e40d741 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 25 Sep 2014 20:22:41 -0400 Subject: [PATCH] tests: sum the first-execution time with the compilation time Signed-off-by: Jean Privat --- tests/tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tests.sh b/tests/tests.sh index bb648a0..32afdf0 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -492,7 +492,10 @@ END echo "NIT_NO_STACK=1 ./$ff.bin" $args fi NIT_NO_STACK=1 LD_LIBRARY_PATH=$JNI_LIB_PATH \ - $TIMEOUT "./$ff.bin" $args < "$inputs" > "$ff.res" 2>"$ff.err" + /usr/bin/time --quiet -f%U -a -o "$ff.time.out" $TIMEOUT "./$ff.bin" $args < "$inputs" > "$ff.res" 2>"$ff.err" + mv $ff.time.out $ff.times.out + awk '{ SUM += $1} END { print SUM }' $ff.times.out > $ff.time.out + if [ "x$verbose" = "xtrue" ]; then cat "$ff.res" cat >&2 "$ff.err" -- 1.7.9.5