Skip to content

Conversation

sdaftuar
Copy link
Member

This was just a proof of concept test that I added when working on #5981; however it's not very useful in travis (it needs multiple bitcoind binaries to do anything useful), and it's unbelievably slow, and so it was just serving as a reference for other test writers interested in local tests comparing multiple binaries.

However lack of use also leads to inadvertent breakage (as pointed out here: #6971 (comment)), so I think it's probably time to remove.

@maflcko
Copy link
Member

maflcko commented Nov 16, 2015

lack of use

But didn't @luke-jr use it in #6971 (comment)?

serving as a reference

Is there a "new and better" way to test multiple bins?

@sdaftuar
Copy link
Member Author

@MarcoFalke The framework for testing multiple binaries is still in place. The methods I used in this pull (especially using invalidateblock/reconsiderblock over and over) should probably be done a better way somehow, but I haven't thought about how I'd do it again if I were going to reimplement.

As for the meat of this test, it is just implementing the script tests that are performed by the unit tests already anyway (except over the p2p network), so we're not losing any test coverage functionality that I can think of.

@luke-jr
Copy link
Member

luke-jr commented Nov 16, 2015

The breakage in #6971 (comment) is related to the test framework more than script_test.py AFAICT...

@maflcko
Copy link
Member

maflcko commented Nov 16, 2015

ACK, if no one complains.

@jonasschnelli
Copy link
Contributor

ACK.

@fanquake
Copy link
Member

ACK

@laanwj
Copy link
Member

laanwj commented Nov 20, 2015

Removing unmaintained and dead code is good practice. Anyone that wants to 'resurrect' the code can always get it from git history.

Speaking of which - I'd really like to re-enable the rpcbind.py test without the IPv6 part until the a new stable libevent is in common use. With libevent's release schedule it may take years otherwise :-)

@petertodd
Copy link
Contributor

utACK

@gmaxwell
Copy link
Contributor

ACK.

@gmaxwell gmaxwell merged commit c800c95 into bitcoin:master Nov 22, 2015
gmaxwell added a commit that referenced this pull request Nov 22, 2015
c800c95 Remove unmaintained example test script_test.py (Suhas Daftuar)
zkbot added a commit to zcash/zcash that referenced this pull request Dec 2, 2020
Backport migration from rpc-tests.sh to rpc-tests.py

Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6567
- bitcoin/bitcoin#6523
- bitcoin/bitcoin#6616
- bitcoin/bitcoin#6788
  - Only the commit fixing `rpc-tests.py`
- bitcoin/bitcoin#6791
  - Only the fix to `qa/rpc-tests/README.md`
- bitcoin/bitcoin#6827
- bitcoin/bitcoin#6930
- bitcoin/bitcoin#6804
- bitcoin/bitcoin#7029
- bitcoin/bitcoin#7028
- bitcoin/bitcoin#7027
- bitcoin/bitcoin#7135
- bitcoin/bitcoin#7209
- bitcoin/bitcoin#7635
- bitcoin/bitcoin#7778
- bitcoin/bitcoin#7851
- bitcoin/bitcoin#7814
  - Only the changes to the new .py files in this PR.
- bitcoin/bitcoin#7971
- bitcoin/bitcoin#7972
- bitcoin/bitcoin#8056
  - Only the first commit.
- bitcoin/bitcoin#8098
- bitcoin/bitcoin#8104
- bitcoin/bitcoin#8133
  - Only the `rpc-tests.py` commit.
- bitcoin/bitcoin#8066
- bitcoin/bitcoin#8216
  - Only the last two commits.
- bitcoin/bitcoin#8254
- bitcoin/bitcoin#8400
- bitcoin/bitcoin#8482
  - Excluding the first commit (only affects RPC tests we don't have).
- bitcoin/bitcoin#8551
- bitcoin/bitcoin#8607
  - Only the pull-tester commit, for conflict removal.
- bitcoin/bitcoin#8625
- bitcoin/bitcoin#8713
- bitcoin/bitcoin#8750
- bitcoin/bitcoin#8789
- bitcoin/bitcoin#9098
- bitcoin/bitcoin#9276
  - Excluding the second commit (we don't have the changes it requires).
- bitcoin/bitcoin#9657
- bitcoin/bitcoin#9807
- bitcoin/bitcoin#9766
- bitcoin/bitcoin#9823
zkbot added a commit to zcash/zcash that referenced this pull request Dec 2, 2020
Backport migration from rpc-tests.sh to rpc-tests.py

Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6567
- bitcoin/bitcoin#6523
- bitcoin/bitcoin#6616
- bitcoin/bitcoin#6788
  - Only the commit fixing `rpc-tests.py`
- bitcoin/bitcoin#6791
  - Only the fix to `qa/rpc-tests/README.md`
- bitcoin/bitcoin#6827
- bitcoin/bitcoin#6930
- bitcoin/bitcoin#6804
- bitcoin/bitcoin#7029
- bitcoin/bitcoin#7028
- bitcoin/bitcoin#7027
- bitcoin/bitcoin#7135
- bitcoin/bitcoin#7209
- bitcoin/bitcoin#7635
- bitcoin/bitcoin#7778
- bitcoin/bitcoin#7851
- bitcoin/bitcoin#7814
  - Only the changes to the new .py files in this PR.
- bitcoin/bitcoin#7971
- bitcoin/bitcoin#7972
- bitcoin/bitcoin#8056
  - Only the first commit.
- bitcoin/bitcoin#8098
- bitcoin/bitcoin#8104
- bitcoin/bitcoin#8133
  - Only the `rpc-tests.py` commit.
- bitcoin/bitcoin#8066
- bitcoin/bitcoin#8216
  - Only the last two commits.
- bitcoin/bitcoin#8254
- bitcoin/bitcoin#8400
- bitcoin/bitcoin#8482
  - Excluding the first commit (only affects RPC tests we don't have).
- bitcoin/bitcoin#8551
- bitcoin/bitcoin#8607
  - Only the pull-tester commit, for conflict removal.
- bitcoin/bitcoin#8625
- bitcoin/bitcoin#8713
- bitcoin/bitcoin#8750
- bitcoin/bitcoin#8789
- bitcoin/bitcoin#9098
- bitcoin/bitcoin#9276
  - Excluding the second commit (we don't have the changes it requires).
- bitcoin/bitcoin#9657
- bitcoin/bitcoin#9807
- bitcoin/bitcoin#9766
- bitcoin/bitcoin#9823
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants