exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

4-test.sh (704B)


      1 #!/bin/bash
      2 set -evux
      3 
      4 check_command()
      5 {
      6     # /usr/local is where the install step has put the libararies
      7     export TALER_EXCHANGE_PREFIX=/usr/local
      8     export TALER_AUDITOR_PREFIX=/usr/local
      9 
     10     # bank and merchant are from the debian package, having /usr as
     11     # their installation path's
     12     export TALER_BANK_PREFIX=/usr
     13     export TALER_MERCHANT_PREFIX=/usr
     14     export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/x86_64-linux-gnu/taler-merchant
     15 
     16     # Some tests appear to require this
     17     export USER=root
     18 
     19     make check installcheck integrationtests
     20 }
     21 
     22 print_logs()
     23 {
     24     set +e
     25 		echo "Printing meson log"
     26     cat build/meson-logs/testlog.txt
     27 }
     28 
     29 if ! check_command ; then
     30 	print_logs
     31 	exit 1
     32 fi