OSDN Git Service

add package
[bytom/vapor.git] / vendor / github.com / multiformats / go-multihash / test / sharness / lib / test-aggregate-results.sh
diff --git a/vendor/github.com/multiformats/go-multihash/test/sharness/lib/test-aggregate-results.sh b/vendor/github.com/multiformats/go-multihash/test/sharness/lib/test-aggregate-results.sh
new file mode 100644 (file)
index 0000000..c2ff76c
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# Script to aggregate results using Sharness
+#
+# Copyright (c) 2014 Christian Couder
+# MIT Licensed; see the LICENSE file in this repository.
+#
+
+SHARNESS_AGGREGATE="lib/sharness/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"