aboutsummaryrefslogtreecommitdiff
path: root/qa/pull-tester
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2018-01-20 17:56:53 +0000
committerRoss Nicoll <[email protected]>2018-09-19 22:11:47 +0100
commitb6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae (patch)
tree0d36b3a80575ee685b4760a3cd1e4fa6f7223e4a /qa/pull-tester
parentReplace HMAC_SHA256 with Bitcoin's version (#1438) (diff)
downloaddiscoin-b6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae.tar.xz
discoin-b6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae.zip
Update RPC tests for Dogecoin (#1431)
* Make most of the RPC tests pass * Add AUXPoW rpc tests - Tests the auxpow rpc interface `getauxblock` - Tests consensus constraints for auxpow: - Minimum block height - Valid scrypt proof of work - Foreign chain ID
Diffstat (limited to 'qa/pull-tester')
-rwxr-xr-xqa/pull-tester/install-deps.sh10
-rwxr-xr-xqa/pull-tester/rpc-tests.py38
2 files changed, 31 insertions, 17 deletions
diff --git a/qa/pull-tester/install-deps.sh b/qa/pull-tester/install-deps.sh
new file mode 100755
index 000000000..e54bfe1cd
--- /dev/null
+++ b/qa/pull-tester/install-deps.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# installs test dependencies
+
+wget https://github.com/langerhans/ltc-scrypt/archive/master.tar.gz
+echo "ade3cdf498927990b6d153d74f0da104114e838584be5a81bef8972accd03341 master.tar.gz" | sha256sum -c
+tar zxf master.tar.gz
+pushd ltc-scrypt-master
+python3 setup.py install --user
+popd
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py
index 20ab0fdd1..849b4e7e8 100755
--- a/qa/pull-tester/rpc-tests.py
+++ b/qa/pull-tester/rpc-tests.py
@@ -103,30 +103,32 @@ testScripts = [
'wallet-hd.py',
'walletbackup.py',
# vv Tests less than 5m vv
- 'p2p-fullblocktest.py',
+ # 'p2p-fullblocktest.py',
'fundrawtransaction.py',
- 'p2p-compactblocks.py',
- 'segwit.py',
+ #'p2p-compactblocks.py',
+ # 'segwit.py',
# vv Tests less than 2m vv
+ 'auxpow.py',
+ 'getauxblock.py',
'wallet.py',
'wallet-accounts.py',
- 'p2p-segwit.py',
+ # 'p2p-segwit.py',
'wallet-dump.py',
'listtransactions.py',
# vv Tests less than 60s vv
- 'sendheaders.py',
+ # 'sendheaders.py',
'zapwallettxes.py',
'importmulti.py',
'mempool_limit.py',
'merkle_blocks.py',
'receivedby.py',
'abandonconflict.py',
- 'bip68-112-113-p2p.py',
+ # 'bip68-112-113-p2p.py',
'rawtransactions.py',
'reindex.py',
# vv Tests less than 30s vv
'mempool_resurrect_test.py',
- 'txn_doublespend.py --mineblock',
+ #'txn_doublespend.py --mineblock',
'txn_clone.py',
'getchaintips.py',
'rest.py',
@@ -143,15 +145,17 @@ testScripts = [
'keypool.py',
'p2p-mempool.py',
'prioritise_transaction.py',
- 'invalidblockrequest.py',
- 'invalidtxrequest.py',
- 'p2p-versionbits-warning.py',
+ # 'invalidblockrequest.py',
+ # 'invalidtxrequest.py',
+ # 'p2p-versionbits-warning.py',
'preciousblock.py',
'importprunedfunds.py',
'signmessages.py',
- 'nulldummy.py',
+ # 'nulldummy.py',
'import-rescan.py',
- 'bumpfee.py',
+ # While fee bumping should work in Doge, these tests depend on free transactions, which we don't support.
+ # Disable until we can do a full rewrite of the tests (possibly upstream), or revise fee schedule, or something
+ # 'bumpfee.py',
'rpcnamedargs.py',
'listsinceblock.py',
'p2p-leaktests.py',
@@ -167,17 +171,17 @@ testScriptsExt = [
'maxuploadtarget.py',
'mempool_packages.py',
# vv Tests less than 2m vv
- 'bip68-sequence.py',
+ # 'bip68-sequence.py',
'getblocktemplate_longpoll.py',
'p2p-timeouts.py',
# vv Tests less than 60s vv
- 'bip9-softforks.py',
+ # 'bip9-softforks.py',
'p2p-feefilter.py',
'rpcbind_test.py',
# vv Tests less than 30s vv
'bip65-cltv.py',
- 'bip65-cltv-p2p.py',
- 'bipdersig-p2p.py',
+ # 'bip65-cltv-p2p.py',
+ # 'bipdersig-p2p.py',
'bipdersig.py',
'getblocktemplate_proposals.py',
'txn_doublespend.py',
@@ -277,7 +281,7 @@ class RPCTestHandler:
log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16)
self.jobs.append((t,
time.time(),
- subprocess.Popen((RPC_TESTS_DIR + t).split() + self.flags + port_seed,
+ subprocess.Popen(['python3.6']+(RPC_TESTS_DIR + t).split() + self.flags + port_seed,
universal_newlines=True,
stdout=log_stdout,
stderr=log_stderr),