Skip to content

interp: find TestInterp cases with a glob - #5916

Merged
deadprogram merged 1 commit into
tinygo-org:devfrom
davecheney:dfc/interp-test-glob
Oct 19, 2026
Merged

deadprogram merged 1 commit into
tinygo-org:devfrom
davecheney:dfc/interp-test-glob

Conversation

@davecheney

@davecheney davecheney commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

TestInterp used a list of test names in interp_test.go. Each new
IR test had to add its name to this list. Branches that each added a
name at the end of the list had merge conflicts with each other.

Each test case is a pair of files, testdata/.ll and
testdata/.out.ll. TestInterp now finds the cases with a glob
on testdata/*.out.ll. A new case does not need a change to
interp_test.go. The test fails if the glob finds no files.

largearray.ll has no .out.ll file, thus TestInterp does not use it.
TestInterpLargeArray continues to use it.

TestInterp used a list of test names in interp_test.go. Each new
IR test had to add its name to this list. Branches that each added a
name at the end of the list had merge conflicts with each other.

Each test case is a pair of files, testdata/<name>.ll and
testdata/<name>.out.ll. TestInterp now finds the cases with a glob
on testdata/*.out.ll. A new case does not need a change to
interp_test.go. The test fails if the glob finds no files.

largearray.ll has no .out.ll file, thus TestInterp does not use it.
TestInterpLargeArray continues to use it.

@dgryski dgryski 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.

LGTM

@deadprogram

Copy link
Copy Markdown
Member

Thanks @davecheney and @dgryski now merging.

@deadprogram
deadprogram merged commit bf750c2 into tinygo-org:dev Oct 19, 2026
34 checks passed
@davecheney
davecheney deleted the dfc/interp-test-glob branch October 19, 2026 22:06
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.

3 participants