Auto merge of #1888 - mvrilo:busybox-sha256sum, r=daira
[VerusCoin.git] / qa / zcash / full-test-suite.sh
1 #!/bin/bash
2 #
3 # Execute all of the automated tests related to Zcash.
4 #
5
6 set -eu
7
8 SUITE_EXIT_STATUS=0
9 REPOROOT="$(readlink -f "$(dirname "$0")"/../../)"
10
11 function run_test_phase
12 {
13     echo "===== BEGIN: $*"
14     set +e
15     eval "$@"
16     if [ $? -eq 0 ]
17     then
18         echo "===== PASSED: $*"
19     else
20         echo "===== FAILED: $*"
21         SUITE_EXIT_STATUS=1
22     fi
23     set -e
24 }
25
26 cd "${REPOROOT}"
27
28 # Test phases:
29 run_test_phase "${REPOROOT}/qa/zcash/check-security-hardening.sh"
30 run_test_phase "${REPOROOT}/qa/zcash/ensure-no-dot-so-in-depends.py"
31
32 # If make check fails, show test-suite.log as part of our run_test_phase
33 # output (and fail the phase with false):
34 run_test_phase make check '||' \
35                '{' \
36                echo '=== ./src/test-suite.log ===' ';' \
37                cat './src/test-suite.log' ';' \
38                false ';' \
39                '}'
40
41 exit $SUITE_EXIT_STATUS
42
43
44
45
46
47
This page took 0.025663 seconds and 4 git commands to generate.