merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

4-test.sh (402B)


      1 #!/bin/bash
      2 set -evux
      3 
      4 check_command()
      5 {
      6 	# Set LD_LIBRARY_PATH so tests can find the installed libs
      7 	LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/taler:/usr/lib:/usr/lib/taler TALER_MERCHANT_PREFIX=/usr PGPORT=5432 make check installcheck integrationtests
      8 }
      9 
     10 print_logs()
     11 {
     12     set +e
     13 		echo "Printing meson log"
     14     cat build/meson-logs/testlog.txt
     15 }
     16 
     17 
     18 
     19 if ! check_command ; then
     20 	print_logs
     21 	exit 1
     22 fi