Skip to content

Conversation

bshastry
Copy link
Contributor

@bshastry bshastry commented Oct 2, 2025

Enable blocktest to read filenames from stdin when no path argument is provided, matching the existing statetest behavior. This allows efficient batch processing of blockchain tests.

Usage:

  • Single file: evm blocktest
  • Batch mode: find tests/ -name "*.json" | evm blocktest

🤖 Generated with Claude Code

Enable blocktest to read filenames from stdin when no path argument
is provided, matching the existing statetest behavior. This allows
efficient batch processing of blockchain tests.

Usage:
- Single file: evm blocktest <path>
- Batch mode: find tests/ -name "*.json" | evm blocktest

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MariusVanDerWijden
Copy link
Member

The lint is red @bshastry

@bshastry bshastry force-pushed the cmd/evm-blocktest-stdin branch 2 times, most recently from 9d2a754 to 0e8268a Compare October 6, 2025 09:14
@bshastry bshastry force-pushed the cmd/evm-blocktest-stdin branch from 0e8268a to 94b4de0 Compare October 6, 2025 09:17
@MariusVanDerWijden
Copy link
Member

Been looking a bit into this. Its seems the whole concept of EndMarker should be removed. What I guess you want is to write out the results between the traces not only at the end of the test, right? This should be possible with the traceResult struct. I will push a commit on top which changes this, we can remove it again if you don't agree

@bshastry
Copy link
Contributor Author

bshastry commented Oct 6, 2025

Been looking a bit into this. Its seems the whole concept of EndMarker should be removed. What I guess you want is to write out the results between the traces not only at the end of the test, right? This should be possible with the traceResult struct. I will push a commit on top which changes this, we can remove it again if you don't agree

Yeah, basically I want a read protocol for jsonl that signals when blocktest results are complete, so I can break the jsonl scanner loop.

trace line 1 trace line 2

...
<- Scanner breaks on seeing end marker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants