From 0aebe75361be896861d222fc42c59a13de4c6021 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 25 Oct 2014 11:57:31 +0200 Subject: [PATCH] Add test-aggregate-results.sh This script aggregates test results using Sharness. --- test/test-aggregate-results.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test/test-aggregate-results.sh diff --git a/test/test-aggregate-results.sh b/test/test-aggregate-results.sh new file mode 100755 index 000000000..fdac06dea --- /dev/null +++ b/test/test-aggregate-results.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Script to aggregate results using Sharness +# +# Copyright (c) 2014 Christian Couder +# MIT Licensed; see the LICENSE file in this repository. +# + +. ./test-sharness-config.sh + +SHARNESS_AGGREGATE="$SHARNESS_DIRECTORY/aggregate-results.sh" + +test -f "$SHARNESS_AGGREGATE" || { + echo >&2 "Cannot find: $SHARNESS_AGGREGATE" + echo >&2 "Please check Sharness installation." + exit 1 +} + +ls test-results/t*-*.sh.*.counts | "$SHARNESS_AGGREGATE"