4-test.sh (590B)
1 #!/bin/bash 2 set -evux 3 4 check_command() 5 { 6 # Set LD_LIBRARY_PATH so tests can find the installed libs; 7 # libanastasis* land in the multiarch libdir, the Taler libraries 8 # come from the Debian packages. 9 export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/taler:/usr/lib/x86_64-linux-gnu/taler-merchant:/usr/lib 10 # taler-unified-setup.sh (used by the reducer and IBAN tests) wants this 11 export USER=root 12 PGPORT=5432 make check 13 } 14 15 print_logs() 16 { 17 set +e 18 echo "Printing meson log" 19 cat build/meson-logs/testlog.txt 20 } 21 22 if ! check_command ; then 23 print_logs 24 exit 1 25 fi