mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
16341cc15c
bba2216
RPC test for "#5418 Report missing inputs in sendrawtransaction" (Jonas Schnelli)de8e801
Report missing inputs in sendrawtransaction (Pieter Wuille)
49 lines
1.2 KiB
Bash
Executable File
49 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
CURDIR=$(cd $(dirname "$0"); pwd)
|
|
# Get BUILDDIR and REAL_BITCOIND
|
|
. "${CURDIR}/tests-config.sh"
|
|
|
|
export BITCOINCLI=${BUILDDIR}/qa/pull-tester/run-bitcoin-cli
|
|
export BITCOIND=${REAL_BITCOIND}
|
|
|
|
if [ "x${EXEEXT}" = "x.exe" ]; then
|
|
echo "Win tests currently disabled"
|
|
exit 0
|
|
fi
|
|
|
|
#Run the tests
|
|
|
|
testScripts=(
|
|
'wallet.py'
|
|
'listtransactions.py'
|
|
'mempool_resurrect_test.py'
|
|
'txn_doublespend.py'
|
|
'txn_doublespend.py --mineblock'
|
|
'getchaintips.py'
|
|
'rest.py'
|
|
'mempool_spendcoinbase.py'
|
|
'mempool_coinbase_spends.py'
|
|
'httpbasics.py'
|
|
'zapwallettxes.py'
|
|
'proxy_test.py'
|
|
'merkle_blocks.py'
|
|
'rawtransactions.py'
|
|
# 'forknotify.py'
|
|
'maxblocksinflight.py'
|
|
'invalidblockrequest.py'
|
|
);
|
|
if [ "x${ENABLE_BITCOIND}${ENABLE_UTILS}${ENABLE_WALLET}" = "x111" ]; then
|
|
for (( i = 0; i < ${#testScripts[@]}; i++ ))
|
|
do
|
|
if [ -z "$1" ] || [ "$1" == "${testScripts[$i]}" ] || [ "$1.py" == "${testScripts[$i]}" ]
|
|
then
|
|
echo -e "Running testscript \033[1m${testScripts[$i]}...\033[0m"
|
|
${BUILDDIR}/qa/rpc-tests/${testScripts[$i]} --srcdir "${BUILDDIR}/src"
|
|
fi
|
|
done
|
|
else
|
|
echo "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
|
|
fi
|