forked from zcash/zcash
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: replace the old (unused since Travis) tests with new rpc test …
…scripts
- Loading branch information
Showing
7 changed files
with
53 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/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} | ||
|
||
#Run the tests | ||
|
||
if [ "x${ENABLE_BITCOIND}${ENABLE_UTILS}${ENABLE_WALLET}" = "x111" ]; then | ||
${BUILDDIR}/qa/rpc-tests/wallet.sh "${BUILDDIR}/src" | ||
${BUILDDIR}/qa/rpc-tests/listtransactions.py --srcdir "${BUILDDIR}/src" | ||
${BUILDDIR}/qa/rpc-tests/forknotify.py --srcdir "${BUILDDIR}/src" | ||
else | ||
echo "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# This is a thin wrapper around bitcoin-cli that strips the Windows-style EOLs | ||
# from the output if present. It is necessary when using bitcoin-cli.exe on | ||
# Linux since shells will interpret the line-endings as part of the result. | ||
|
||
CURDIR=$(cd $(dirname "$0"); pwd) | ||
# Get BUILDDIR and REAL_BITCOIND | ||
|
||
# Grab the value of $REAL_BITCOINCLI which may be bitcoin-cli.exe. | ||
. "${CURDIR}/tests-config.sh" | ||
|
||
"${REAL_BITCOINCLI}" "$@" | sed 's/\r//' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2013-2014 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
BUILDDIR="@abs_top_builddir@" | ||
EXEEXT="@EXEEXT@" | ||
|
||
# These will turn into comments if they were disabled when configuring. | ||
@ENABLE_WALLET_TRUE@ENABLE_WALLET=1 | ||
@BUILD_BITCOIN_UTILS_TRUE@ENABLE_UTILS=1 | ||
@BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=1 | ||
|
||
REAL_BITCOIND="$BUILDDIR/src/bitcoind${EXEEXT}" | ||
REAL_BITCOINCLI="$BUILDDIR/src/bitcoin-cli${EXEEXT}" | ||
|