test-merchant-walletharness.sh (1446B)
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 . setup.sh 29 30 echo -n "Testing for libeufin-bank" 31 libeufin-bank --help >/dev/null </dev/null || exit_skip " MISSING" 32 echo " FOUND" 33 34 echo -n "Testing for taler-harness" 35 taler-harness --help >/dev/null </dev/null || exit_skip " MISSING" 36 echo " FOUND" 37 38 39 export WITH_LIBEUFIN=0 40 res=0 41 taler-harness run-integrationtests --dry --suites merchant 2&>/dev/null || res=$? 42 43 if [[ $res -ne 0 ]]; then 44 echo "skipping wallet test harness" 45 exit 77 46 fi 47 48 49 exec taler-harness run-integrationtests --suites merchant