Chun Kuan Lee
ed5c647b45
refactor: Drop boost::this_thread::interruption_point and boost::thread_interrupted in main thread
2020-11-23 23:07:15 +00:00
Chun Kuan Lee
8e2d9a78fe
gui: get special folder in unicode
2020-11-23 23:07:15 +00:00
MarcoFalke
1ffd2d5fad
util: Replace boost::signals2 with std::function
...
Zcash: Added missing imports that were being implicitly included.
2020-11-23 23:07:15 +00:00
Jorge Timón
df3b6684f2
clang-format: Delete ForEachMacros
2020-11-23 23:07:15 +00:00
Jorge Timón
c3983ccb1c
scripted-diff: Remove #include <boost/foreach.hpp>
...
-BEGIN VERIFY SCRIPT-
sed -i ':a;N;$!ba;s/#include <boost\/foreach.hpp>\n//' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp
-END VERIFY SCRIPT-
2020-11-23 23:07:15 +00:00
Jorge Timón
62114cff9e
scripted-diff: Remove BOOST_REVERSE_FOREACH
...
-BEGIN VERIFY SCRIPT-
sed -i 's/BOOST_REVERSE_FOREACH(\(.*\), \(.*\))/for (\1 : reverse_iterate(\2))/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ;
-END VERIFY SCRIPT-
2020-11-23 23:07:15 +00:00
Jorge Timón
e8b5d36eea
Fix const_reverse_iterator constructor (pass const ptr)
2020-11-23 23:07:15 +00:00
Jorge Timón
46509b99f4
Introduce src/reverse_iterator.hpp and include it...
...
...where it will be needed
Taken from https://gist.github.com/arvidsson/7231973 with small
modifications to fit the bitcoin core project
2020-11-23 23:07:15 +00:00
Jorge Timón
f5e98e0fb1
scripted-diff: Remove PAIRTYPE
...
Zcash: Added an extra command to handle cases where the pair were not
separated by a space.
-BEGIN VERIFY SCRIPT-
sed -i 's/PAIRTYPE(\([^,]*\), \([^\)]*\))/std::pair<\1, \2>/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
sed -i 's/PAIRTYPE(\([^,]*\),\([^\)]*\))/std::pair<\1, \2>/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
sed -i ':a;N;$!ba;s/#define std::pair<t1, t2> std::pair<t1, t2>\n//' ./src/utilstrencodings.h ;
-END VERIFY SCRIPT-
2020-11-23 23:07:15 +00:00
Jorge Timón
92a867febc
scripted-diff: Fully remove BOOST_FOREACH
...
-BEGIN VERIFY SCRIPT-
sed -i 's/BOOST_FOREACH *(\(.*\),/for (\1 :/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
-END VERIFY SCRIPT-
2020-11-23 23:07:15 +00:00
Jorge Timón
32433c2baf
Small preparations for Q_FOREACH, PAIRTYPE and #include <boost/foreach.hpp> removal
2020-11-23 23:06:32 +00:00
Luv Khemani
5a82dd0817
Add autocomplete to bitcoin-qt's console window.
...
Removed externs
Added listCommands() to CRPCTable
Move autocomplete init to RPCConsole::setClientModel()
Zcash: Only the CRPCTable::listCommands() function.
2020-11-23 23:06:32 +00:00
Jack Grigg
21a7ec8bfb
test: Run rpc-tests.py in full_test_suite.py
2020-11-21 03:03:58 +00:00
Jack Grigg
891fbff5b9
test: Adjust some Zcash RPC tests to work with parallel runner
2020-11-21 03:03:58 +00:00
MarcoFalke
01449d8a3d
qa: Set correct path for binaries in rpc tests
2020-11-21 03:03:58 +00:00
John Newbery
bc644280bf
Add exclude option to rpc-tests.py
2020-11-21 03:03:58 +00:00
fanquake
32249fb5b2
[qa][doc] Correct rpc test options in readme
2020-11-21 03:03:55 +00:00
fanquake
b18c437464
[trivial] Add tests_config.ini to .gitignore
2020-11-21 03:03:15 +00:00
John Newbery
4f4f8d5ad7
Various review markups for rpc-tests.py improvements
2020-11-21 03:03:15 +00:00
John Newbery
6aad43b63f
Refactor rpc-tests.py
...
- add main()
- remove global variables
2020-11-21 03:03:15 +00:00
John Newbery
cc099b3b7b
Improve rpc-tests.py arguments
...
A few miscellaneous improvements to rpc-tests.py command line arguments:
- make all arguments start with double dash for consistency
- improve help text and output
- add nozmq argument to explicitly exclude the ZMQ tests
- change 'parallel' to 'jobs'
2020-11-21 03:03:15 +00:00
John Newbery
389b70cafe
Use argparse in rpc_tests.py
...
This commit replaces the roll-your-own argument parsing in rpc_tests.py
with Python's standard library argparse.
2020-11-21 03:03:15 +00:00
John Newbery
41c2bc1e05
Use configparser in rpc-tests.py
...
Remove the use of wildcard imports in rpc-tests.py and replace with
configparser.
2020-11-21 03:03:15 +00:00
Alex Morcos
2eab4f7503
remove obsolete run-bitcoind-for-test.sh
2020-11-21 03:03:15 +00:00
Alex Morcos
3accdb2fc7
Reorder RPC tests for running time
2020-11-21 03:03:15 +00:00
MarcoFalke
8b3c39ea80
[qa] rpc-tests: Apply random offset to portseed
...
This helps to skip over resources, which are blocked by regtest bitcoind
zombie nodes
2020-11-21 03:03:15 +00:00
MarcoFalke
0a73a0fbd9
[qa] test_framework: Exit when tmpdir exists
2020-11-21 03:03:15 +00:00
MarcoFalke
d014a30566
[qa] pull-tester: Only print output when failed
2020-11-21 03:03:15 +00:00
MarcoFalke
bcbf03ebe9
[qa] Refactor RPCTestHandler to prevent TimeoutExpired
2020-11-21 03:03:15 +00:00
MarcoFalke
352f2dc54b
[qa] create_cache: Delete temp dir when done
2020-11-21 03:03:15 +00:00
isle2983
2d90c8f0d8
[doc] - clarify statement about parallel jobs in rpc-tests.py
2020-11-21 03:03:12 +00:00
MarcoFalke
4500a75346
[qa] pull-tester: Don't mute zmq ImportError
...
Zcash: We didn't backport the mute, so this is just conflict removal.
2020-11-21 03:02:41 +00:00
MarcoFalke
e4d1dcc753
[qa] Remove unused code
2020-11-21 03:02:41 +00:00
MarcoFalke
b25a63593e
[qa] Use single cache dir for chains
2020-11-21 03:02:41 +00:00
MarcoFalke
dbb41d1082
[qa] Adjust timeouts for micro-optimization of run time
2020-11-21 03:02:41 +00:00
whythat
1b3866fd0e
[qa]: enable rpcbind_test
2020-11-21 03:02:41 +00:00
whythat
3c7f4ca809
[qa]: add parsing for '<host>:<port>' argument form to rpc_url()
2020-11-21 03:02:41 +00:00
fanquake
2fc450d94e
[doc] Add OS X ZMQ requirement to QA readme
2020-11-21 03:02:37 +00:00
MarcoFalke
7366e81375
[qa] pull-tester: Start longest test first
2020-11-21 02:34:47 +00:00
MarcoFalke
fd7689ff07
[qa] pull-tester: Fix assertion and check for run_parallel
2020-11-21 02:34:47 +00:00
MarcoFalke
63a3c9aceb
[qa] test_framework: Use different rpc_auth_pair for each node
2020-11-21 02:34:47 +00:00
Cory Fields
ecf9d8eb2b
build: a few ugly hacks to get the rpc tests working out-of-tree
...
- Link pull-tester/rpc-tests.py to the build dir
- Add the build-dir's config to the python path so that tests can find it
- The tests themselves are in srcdir
- Clean up __pycache__ in 'make clean'
2020-11-21 02:34:47 +00:00
Suhas Daftuar
2399cfc7ba
Tests: add timeout to sync_blocks() and sync_mempools()
...
Previously these functions would infinitely loop if sync failed;
now they have a default timeout of 60 seconds, after which an
AssertionError is raised.
sync_blocks() has also been improved and now compares the tip
hash of each node, rather than just using block count.
Zcash: Kept block count check for a couple of tests where we use it.
2020-11-21 02:34:47 +00:00
MarcoFalke
17caf1ddd1
[qa] test_framework: Append portseed to tmpdir
...
This makes it possible to specify a tmpdir while running tests in
parallel
2020-11-21 02:34:47 +00:00
MarcoFalke
818d2de39b
[qa] Remove hardcoded "4 nodes" from test_framework
...
Zcash: Applied changes to our RPC tests.
2020-11-21 02:34:47 +00:00
MarcoFalke
5a12bc9d83
[qa] Add option --portseed to test_framework
2020-11-21 02:33:27 +00:00
MarcoFalke
cbe91ea855
[qa] pull-tester: Run rpc test in parallel
2020-11-21 02:33:27 +00:00
MarcoFalke
0d8a62925a
[qa] pull-tester: Adjust comment
2020-11-21 02:33:27 +00:00
MarcoFalke
5f13446dee
[qa] Stop other nodes, even when one fails to stop
2020-11-21 02:33:27 +00:00
MarcoFalke
065255d3cb
[qa] Update README.md
2020-11-21 02:33:27 +00:00