Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: support // vtest build: !do_not_test ?, // vtest build: !windows && tinyc to skip files during testing on specific platforms, without having to keep centralised skip lists #23900

Merged
merged 7 commits into from
Mar 11, 2025

Conversation

spytheman
Copy link
Member

@spytheman spytheman commented Mar 11, 2025

This PR provides a more general mechanism for skipping test files on specific platforms, by marking them with special build expression comments inside them, that are later checked by v test, and evaluated against the current environment.

In a later PR, after this is merged, that mechanism will be used for cleaning up cmd/tools/modules/testing/common.v:222 to line 323 (the logic for adding to the skip_files list is currently hard coded, and needs modification to the test runner).

Given that the mechanism is general, it could be used by user test files too, and I have additional plans for making it work for normal .v files, since it is more general than the platform suffixes (the expressions can be much more complex, supporting &&, ||, !, and () ...)

Copy link

Connected to Huly®: V_0.6-22302

@JalonSolov
Copy link
Contributor

YES! Excellent change. Keeping hard-coded lists in files is cumbersome, error prone, and causes more churn than necessary.

@spytheman spytheman force-pushed the implement_vtest_build branch from 67c9128 to 718dbb1 Compare March 11, 2025 11:51
@spytheman spytheman force-pushed the implement_vtest_build branch from 5e60dc5 to caa0823 Compare March 11, 2025 19:15
@spytheman spytheman merged commit 35b1cff into vlang:master Mar 11, 2025
68 checks passed
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