Skip to content

verify: fix test existence check#630

Merged
tcharding merged 1 commit into
rust-bitcoin:masterfrom
RuslanProgrammer:fix-test-existence-check
Jun 18, 2026
Merged

verify: fix test existence check#630
tcharding merged 1 commit into
rust-bitcoin:masterfrom
RuslanProgrammer:fix-test-existence-check

Conversation

@RuslanProgrammer

Copy link
Copy Markdown
Contributor

Fixes: #629

Handling test_exists function correctly, instead of treating everything non-error as success/failure.

@jamillambert jamillambert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a bunch of missing tests that do exist when checking on v30. e.g. scanblocks, scantxoutset. I didn't go through them all to see if they are in the output file and there are no typos or missing _.

EDIT: After further looking this looks like issues in the test names and other real problems.

@tcharding

Copy link
Copy Markdown
Member

FWIW on this branch I get:

cargo run -- --tests /tmp/test29.out 29
   Compiling verify v0.1.0 (/home/tobin/build/corepc/verify)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
     Running `/home/tobin/~/.cache/cargo/debug/verify --tests /tmp/test29.out 29`
Checking that the v29::METHOD data list is correct ... 
Correct ✓ 

Checking that the rustdoc version specific rustdocs list is correct ... 
Correct ✓ 

Checking that the status claimed in the version specific rustdocs is correct ... 
found integration test for untested method: loadtxoutset
missing integration test: savemempool
missing integration test: scanblocks
missing integration test: scantxoutset
missing integration test: getmininginfo
missing integration test: getnetworkhashps
missing integration test: getprioritisedtransactions
missing integration test: submitblock
missing integration test: descriptorprocesspsbt
missing integration test: signrawtransactionwithkey
missing integration test: getbalances
missing integration test: importprivkey
missing integration test: importwallet
missing integration test: newkeypool
missing integration test: setlabel
missing integration test: simulaterawtransaction
status verification failed (16 issue(s))
Incorrect ✗ 

Checking that 'Returns' column matches model requirements ... 
Correct ✓ 

Checking that corepc-types re-exports are complete ... 
Correct ✓ 

Error: verification failed (1 check(s) failed)

(After creating test output with: cd integration_test; test29 2>&1 > /tmp/test29.out

@tcharding

Copy link
Copy Markdown
Member

Thanks for looking into this @RuslanProgrammer! Appreciate your effort.

@jamillambert jamillambert mentioned this pull request Jun 17, 2026

@jamillambert jamillambert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3920ecd

Nice one. Definitely works better now. I went through all the failures it found and fixed them in #634.

@tcharding tcharding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3920ecd

@tcharding tcharding merged commit 35e427d into rust-bitcoin:master Jun 18, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verify with --tests doesn't work correctly

3 participants