2014-10-31 03:58:13 +01:00
|
|
|
#!/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}
|
|
|
|
|
2014-11-17 20:08:08 +01:00
|
|
|
if [ "x${EXEEXT}" = "x.exe" ]; then
|
|
|
|
echo "Win tests currently disabled"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2014-10-31 03:58:13 +01:00
|
|
|
#Run the tests
|
|
|
|
|
|
|
|
if [ "x${ENABLE_BITCOIND}${ENABLE_UTILS}${ENABLE_WALLET}" = "x111" ]; then
|
2014-11-20 20:27:18 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/wallet.py --srcdir "${BUILDDIR}/src"
|
2014-10-31 03:58:13 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/listtransactions.py --srcdir "${BUILDDIR}/src"
|
2014-11-25 21:21:39 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/mempool_resurrect_test.py --srcdir "${BUILDDIR}/src"
|
2014-11-19 21:36:10 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/txn_doublespend.py --srcdir "${BUILDDIR}/src"
|
|
|
|
${BUILDDIR}/qa/rpc-tests/txn_doublespend.py --mineblock --srcdir "${BUILDDIR}/src"
|
2014-11-27 10:46:55 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/getchaintips.py --srcdir "${BUILDDIR}/src"
|
2014-11-26 16:26:02 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/rest.py --srcdir "${BUILDDIR}/src"
|
2014-12-02 17:44:50 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/mempool_spendcoinbase.py --srcdir "${BUILDDIR}/src"
|
2014-12-06 23:14:25 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/httpbasics.py --srcdir "${BUILDDIR}/src"
|
2014-11-24 21:18:05 +01:00
|
|
|
${BUILDDIR}/qa/rpc-tests/mempool_coinbase_spends.py --srcdir "${BUILDDIR}/src"
|
2014-11-13 01:24:29 +01:00
|
|
|
#${BUILDDIR}/qa/rpc-tests/forknotify.py --srcdir "${BUILDDIR}/src"
|
2014-10-31 03:58:13 +01:00
|
|
|
else
|
|
|
|
echo "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
|
|
|
|
fi
|