@@ -34,7 +34,7 @@ NON_DETERMINISTIC_TESTS=(
34
34
" wallet_tests/wallet_disableprivkeys" # validation.cpp: if (signals.CallbacksPending() > 10)
35
35
)
36
36
37
- TEST_BITCOIN_BINARY=" src/test/test_bitcoin"
37
+ TEST_BITCOIN_BINARY=" build/ src/test/test_bitcoin"
38
38
39
39
print_usage () {
40
40
echo " Usage: $0 [custom test filter (default: all but known non-deterministic tests)] [number of test runs (default: 2)]"
@@ -86,7 +86,7 @@ if [[ ! -e ${TEST_BITCOIN_BINARY} ]]; then
86
86
fi
87
87
88
88
get_file_suffix_count () {
89
- find src/ -type f -name " *.$1 " | wc -l
89
+ find build/ src/ -type f -name " *.$1 " | wc -l
90
90
}
91
91
92
92
if [[ $( get_file_suffix_count gcno) == 0 ]]; then
@@ -102,7 +102,7 @@ TEST_RUN_ID=0
102
102
while [[ ${TEST_RUN_ID} -lt ${N_TEST_RUNS} ]]; do
103
103
TEST_RUN_ID=$(( TEST_RUN_ID + 1 ))
104
104
echo " [$( date +" %Y-%m-%d %H:%M:%S" ) ] Measuring coverage, run #${TEST_RUN_ID} of ${N_TEST_RUNS} "
105
- find src/ -type f -name " *.gcda" -exec rm {} \;
105
+ find build/ src/ -type f -name " *.gcda" -exec rm {} \;
106
106
if [[ $( get_file_suffix_count gcda) != 0 ]]; then
107
107
echo " Error: Stale *.gcda files found. Exiting."
108
108
exit 1
@@ -119,7 +119,7 @@ while [[ ${TEST_RUN_ID} -lt ${N_TEST_RUNS} ]]; do
119
119
exit 1
120
120
fi
121
121
GCOVR_TEMPFILE=$( mktemp)
122
- if ! gcovr --gcov-executable " ${GCOV_EXECUTABLE} " -r src/ > " ${GCOVR_TEMPFILE} " ; then
122
+ if ! gcovr --gcov-executable " ${GCOV_EXECUTABLE} " -r src/ build/src > " ${GCOVR_TEMPFILE} " ; then
123
123
echo " Error: gcovr failed. Output written to ${GCOVR_TEMPFILE} . Exiting."
124
124
exit 1
125
125
fi
0 commit comments