[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: test runner
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: test runner |
Date: |
Tue, 18 Aug 2020 09:28:10 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 2aeff3a9136afcbb6b9c83677abc5f362f2b05e1
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Aug 18 12:05:22 2020 +0530
test runner
---
packages/taler-integrationtests/testrunner | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/packages/taler-integrationtests/testrunner
b/packages/taler-integrationtests/testrunner
index 03cb15b3..c03f6ed9 100755
--- a/packages/taler-integrationtests/testrunner
+++ b/packages/taler-integrationtests/testrunner
@@ -8,6 +8,13 @@
set -eu
+exit_int() {
+ echo "Interrupted..."
+ exit 2
+}
+
+trap "exit_int" INT
+
if [ "$#" -ne 1 ]; then
echo "Usage: $0 TESTGLOB"
exit 1
@@ -27,6 +34,8 @@ num_exec=0
num_fail=0
num_succ=0
+files_failed=''
+
# Glob tests
for file in lib/$1?(.js); do
case "$file" in
@@ -41,6 +50,7 @@ for file in lib/$1?(.js); do
;;
*)
num_fail=$((num_fail+1))
+ files_failed=$files_failed:$file
;;
esac
;;
@@ -53,6 +63,10 @@ done
echo "-----------------------------------"
echo "Tests finished"
echo "$num_succ/$num_exec tests succeeded"
+if [[ $num_fail != 0 ]]; then
+ echo "These tests failed:"
+ echo $files_failed | tr : \\n | sed '/^$/d'
+fi
echo "-----------------------------------"
if [[ $num_fail = 0 ]]; then
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.