6464 'rawtransactions.py' ,
6565 'reindex.py' ,
6666 # vv Tests less than 30s vv
67+ "zmq_test.py" ,
6768 'mempool_resurrect_test.py' ,
6869 'txn_doublespend.py --mineblock' ,
6970 'txn_clone.py' ,
103104 'p2p-fingerprint.py' ,
104105]
105106
106- ZMQ_SCRIPTS = [
107- # ZMQ test can only be run if Dash Core was built with zmq-enabled.
108- # call test_runner.py with -nozmq to explicitly exclude these tests.
109- 'zmq_test.py' ]
110-
111107EXTENDED_SCRIPTS = [
112108 # These tests are not run by the travis build process.
113109 # Longest test should go first, to favor running tests in parallel
140136]
141137
142138# Place EXTENDED_SCRIPTS first since it has the 3 longest running tests
143- ALL_SCRIPTS = EXTENDED_SCRIPTS + BASE_SCRIPTS + ZMQ_SCRIPTS
139+ ALL_SCRIPTS = EXTENDED_SCRIPTS + BASE_SCRIPTS
144140
145141NON_SCRIPTS = [
146142 # These are python files that live in the functional tests directory, but are not test scripts.
@@ -163,7 +159,6 @@ def main():
163159 parser .add_argument ('--force' , '-f' , action = 'store_true' , help = 'run tests even on platforms where they are disabled by default (e.g. windows).' )
164160 parser .add_argument ('--help' , '-h' , '-?' , action = 'store_true' , help = 'print help text and exit' )
165161 parser .add_argument ('--jobs' , '-j' , type = int , default = 4 , help = 'how many test scripts to run in parallel. Default=4.' )
166- parser .add_argument ('--nozmq' , action = 'store_true' , help = 'do not run the zmq tests' )
167162 args , unknown_args = parser .parse_known_args ()
168163
169164 # Create a set to store arguments and create the passon string
@@ -177,7 +172,6 @@ def main():
177172 enable_wallet = config ["components" ].getboolean ("ENABLE_WALLET" )
178173 enable_utils = config ["components" ].getboolean ("ENABLE_UTILS" )
179174 enable_bitcoind = config ["components" ].getboolean ("ENABLE_BITCOIND" )
180- enable_zmq = config ["components" ].getboolean ("ENABLE_ZMQ" ) and not args .nozmq
181175
182176 if config ["environment" ]["EXEEXT" ] == ".exe" and not args .force :
183177 # https://github.com/bitcoin/bitcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9
@@ -190,27 +184,16 @@ def main():
190184 print ("Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make" )
191185 sys .exit (0 )
192186
193- # python3-zmq may not be installed. Handle this gracefully and with some helpful info
194- if enable_zmq :
195- try :
196- import zmq
197- except ImportError :
198- print ("ERROR: \" import zmq\" failed. Use -nozmq to run without the ZMQ tests."
199- "To run zmq tests, see dependency info in /test/README.md." )
200- raise
201-
202187 # Build list of tests
203188 if tests :
204189 # Individual tests have been specified. Run specified tests that exist
205190 # in the ALL_SCRIPTS list. Accept the name with or without .py extension.
206191 test_list = [t for t in ALL_SCRIPTS if
207192 (t in tests or re .sub (".py$" , "" , t ) in tests )]
208193 else :
209- # No individual tests have been specified. Run base tests, and
210- # optionally ZMQ tests and extended tests.
194+ # No individual tests have been specified.
195+ # Run all base tests, and optionally run extended tests.
211196 test_list = BASE_SCRIPTS
212- if enable_zmq :
213- test_list += ZMQ_SCRIPTS
214197 if args .extended :
215198 # place the EXTENDED_SCRIPTS first since the three longest ones
216199 # are there and the list is shorter
0 commit comments