test-exchange-taler-harness.sh (1428B)
1 #!/usr/bin/env bash 2 # This file is part of TALER 3 # Copyright (C) 2014-2021 Taler Systems SA 4 # 5 # TALER is free software; you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as 7 # published by the Free Software Foundation; either version 3, or 8 # (at your option) any later version. 9 # 10 # TALER is distributed in the hope that it will be useful, but 11 # WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public 16 # License along with TALER; see the file COPYING. If not, see 17 # <http://www.gnu.org/licenses/> 18 # 19 # This script runs test from the wallet's integration test harness. 20 # If the wallet is not installed, the tests are skipped. 21 # Only tests from the "merchant" test suite are run. 22 23 set -eu 24 25 unset XDG_DATA_HOME 26 unset XDG_CONFIG_HOME 27 28 # Exit, with status code "skip" (no 'real' failure) 29 function exit_skip() { 30 echo "SKIPPING: $1" 31 exit 77 32 } 33 34 echo -n "Testing for taler-harness" 35 taler-harness --help >/dev/null </dev/null || exit_skip " MISSING" 36 echo " FOUND" 37 38 export WITH_LIBEUFIN=0 39 res=0 40 taler-harness run-integrationtests --dry --suites exchange 2&>/dev/null || res=$? 41 42 if [[ $res -ne 0 ]]; then 43 echo "skipping taler-harness tests" 44 exit 77 45 fi 46 47 exec taler-harness run-integrationtests --suites exchange