diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-18 12:05:22 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-18 12:05:22 +0530 |
commit | 2aeff3a9136afcbb6b9c83677abc5f362f2b05e1 (patch) | |
tree | d72d223e2dc628d09ab5abbfb42df57a2a8d93aa | |
parent | e9864adf1586a17aca9a7bd7747e8fd2baa001f3 (diff) | |
download | wallet-core-2aeff3a9136afcbb6b9c83677abc5f362f2b05e1.tar.xz |
test runner
-rwxr-xr-x | packages/taler-integrationtests/testrunner | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/testrunner b/packages/taler-integrationtests/testrunner index 03cb15b3c..c03f6ed97 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 |