Skip to content

Commit ea33f19

Browse files
committed
Merge #9276: Some minor testing cleanups
30b620c remove obsolete run-bitcoind-for-test.sh (Alex Morcos) 2a99522 remove relaypriority from rpc tests (Alex Morcos) e2184cc Reorder RPC tests for running time (Alex Morcos)
2 parents 09c4fd1 + 30b620c commit ea33f19

File tree

7 files changed

+38
-67
lines changed

7 files changed

+38
-67
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ coverage_percent.txt
101101
linux-coverage-build
102102
linux-build
103103
win32-build
104-
qa/pull-tester/run-bitcoind-for-test.sh
105104
qa/pull-tester/tests_config.py
106105
qa/cache/*
107106

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,6 @@ AC_SUBST(ZMQ_LIBS)
10771077
AC_SUBST(PROTOBUF_LIBS)
10781078
AC_SUBST(QR_LIBS)
10791079
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py])
1080-
AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh])
10811080
AC_CONFIG_FILES([qa/pull-tester/tests_config.py],[chmod +x qa/pull-tester/tests_config.py])
10821081
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh])
10831082
AC_CONFIG_LINKS([qa/pull-tester/rpc-tests.py:qa/pull-tester/rpc-tests.py])

qa/pull-tester/rpc-tests.py

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -100,78 +100,87 @@
100100

101101
testScripts = [
102102
# longest test should go first, to favor running tests in parallel
103-
'p2p-fullblocktest.py',
103+
'wallet-hd.py',
104104
'walletbackup.py',
105-
'bip68-112-113-p2p.py',
105+
# vv Tests less than 5m vv
106+
'p2p-fullblocktest.py',
107+
'fundrawtransaction.py',
108+
'p2p-compactblocks.py',
109+
'segwit.py',
110+
# vv Tests less than 2m vv
106111
'wallet.py',
107112
'wallet-accounts.py',
108-
'wallet-hd.py',
113+
'p2p-segwit.py',
109114
'wallet-dump.py',
110115
'listtransactions.py',
116+
# vv Tests less than 60s vv
117+
'sendheaders.py',
118+
'zapwallettxes.py',
119+
'importmulti.py',
120+
'mempool_limit.py',
121+
'merkle_blocks.py',
111122
'receivedby.py',
123+
'abandonconflict.py',
124+
'bip68-112-113-p2p.py',
125+
'rawtransactions.py',
126+
'reindex.py',
127+
# vv Tests less than 30s vv
112128
'mempool_resurrect_test.py',
113129
'txn_doublespend.py --mineblock',
114-
'p2p-segwit.py',
115-
'segwit.py',
116130
'txn_clone.py',
117131
'getchaintips.py',
118-
'rawtransactions.py',
119132
'rest.py',
120133
'mempool_spendcoinbase.py',
121134
'mempool_reorg.py',
122-
'mempool_limit.py',
123135
'httpbasics.py',
124136
'multi_rpc.py',
125-
'zapwallettxes.py',
126137
'proxy_test.py',
127-
'merkle_blocks.py',
128-
'fundrawtransaction.py',
129138
'signrawtransactions.py',
130139
'nodehandling.py',
131-
'reindex.py',
132140
'decodescript.py',
133141
'blockchain.py',
134142
'disablewallet.py',
135-
'sendheaders.py',
136143
'keypool.py',
137144
'p2p-mempool.py',
138145
'prioritise_transaction.py',
139146
'invalidblockrequest.py',
140147
'invalidtxrequest.py',
141-
'abandonconflict.py',
142148
'p2p-versionbits-warning.py',
143149
'preciousblock.py',
144150
'importprunedfunds.py',
145151
'signmessages.py',
146-
'p2p-compactblocks.py',
147152
'nulldummy.py',
148-
'importmulti.py',
149153
]
150154
if ENABLE_ZMQ:
151155
testScripts.append('zmq_test.py')
152156

153157
testScriptsExt = [
158+
'pruning.py',
159+
# vv Tests less than 20m vv
160+
'smartfees.py',
161+
# vv Tests less than 5m vv
162+
'maxuploadtarget.py',
163+
'mempool_packages.py',
164+
# vv Tests less than 2m vv
165+
'bip68-sequence.py',
166+
'getblocktemplate_longpoll.py',
167+
# vv Tests less than 60s vv
154168
'bip9-softforks.py',
169+
'p2p-feefilter.py',
170+
'rpcbind_test.py',
171+
# vv Tests less than 30s vv
155172
'bip65-cltv.py',
156173
'bip65-cltv-p2p.py',
157-
'bip68-sequence.py',
158174
'bipdersig-p2p.py',
159175
'bipdersig.py',
160-
'getblocktemplate_longpoll.py',
161176
'getblocktemplate_proposals.py',
162177
'txn_doublespend.py',
163178
'txn_clone.py --mineblock',
164179
'forknotify.py',
165180
'invalidateblock.py',
166-
'rpcbind_test.py',
167-
'smartfees.py',
168181
'maxblocksinflight.py',
169182
'p2p-acceptblock.py',
170-
'mempool_packages.py',
171-
'maxuploadtarget.py',
172183
'replace-by-fee.py',
173-
'p2p-feefilter.py',
174-
'pruning.py', # leave pruning last as it takes a REALLY long time
175184
]
176185

177186

qa/pull-tester/run-bitcoind-for-test.sh.in

Lines changed: 0 additions & 36 deletions
This file was deleted.

qa/rpc-tests/mempool_packages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def __init__(self):
2020

2121
def setup_network(self):
2222
self.nodes = []
23-
self.nodes.append(start_node(0, self.options.tmpdir, ["-maxorphantx=1000", "-relaypriority=0", "-debug"]))
24-
self.nodes.append(start_node(1, self.options.tmpdir, ["-maxorphantx=1000", "-relaypriority=0", "-limitancestorcount=5", "-debug"]))
23+
self.nodes.append(start_node(0, self.options.tmpdir, ["-maxorphantx=1000", "-debug"]))
24+
self.nodes.append(start_node(1, self.options.tmpdir, ["-maxorphantx=1000", "-limitancestorcount=5", "-debug"]))
2525
connect_nodes(self.nodes[0], 1)
2626
self.is_network_split = False
2727
self.sync_all()

qa/rpc-tests/replace-by-fee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self):
7676
def setup_network(self):
7777
self.nodes = []
7878
self.nodes.append(start_node(0, self.options.tmpdir, ["-maxorphantx=1000", "-debug",
79-
"-relaypriority=0", "-whitelist=127.0.0.1",
79+
"-whitelist=127.0.0.1",
8080
"-limitancestorcount=50",
8181
"-limitancestorsize=101",
8282
"-limitdescendantcount=200",

qa/rpc-tests/smartfees.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def setup_network(self):
159159
self.nodes = []
160160
# Use node0 to mine blocks for input splitting
161161
self.nodes.append(start_node(0, self.options.tmpdir, ["-maxorphantx=1000",
162-
"-relaypriority=0", "-whitelist=127.0.0.1"]))
162+
"-whitelist=127.0.0.1"]))
163163

164164
print("This test is time consuming, please be patient")
165165
print("Splitting inputs to small size so we can generate low priority tx's")
@@ -197,12 +197,12 @@ def setup_network(self):
197197
# (17k is room enough for 110 or so transactions)
198198
self.nodes.append(start_node(1, self.options.tmpdir,
199199
["-blockprioritysize=1500", "-blockmaxsize=17000",
200-
"-maxorphantx=1000", "-relaypriority=0", "-debug=estimatefee"]))
200+
"-maxorphantx=1000", "-debug=estimatefee"]))
201201
connect_nodes(self.nodes[1], 0)
202202

203203
# Node2 is a stingy miner, that
204204
# produces too small blocks (room for only 55 or so transactions)
205-
node2args = ["-blockprioritysize=0", "-blockmaxsize=8000", "-maxorphantx=1000", "-relaypriority=0"]
205+
node2args = ["-blockprioritysize=0", "-blockmaxsize=8000", "-maxorphantx=1000"]
206206

207207
self.nodes.append(start_node(2, self.options.tmpdir, node2args))
208208
connect_nodes(self.nodes[0], 2)

0 commit comments

Comments
 (0)