Skip to content

cmdline: Support multiple queries on the command line - #4718

Merged
kainino0x merged 1 commit into
gpuweb:mainfrom
s-perron:user/s-perron/cmdline-multi-query
Oct 15, 2026
Merged

kainino0x merged 1 commit into
gpuweb:mainfrom
s-perron:user/s-perron/cmdline-multi-query

Conversation

@s-perron

Copy link
Copy Markdown
Contributor

Load and run test cases for all positional query arguments in cmdline.ts instead of asserting queries.length === 1.

Load and run test cases for all positional query arguments instead of asserting queries.length === 1.
@s-perron

Copy link
Copy Markdown
Contributor Author

Do I need to add tests anywhere?

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

no, I don't think we have or really need tests for the command line interface.

@kainino0x
kainino0x enabled auto-merge (squash) October 15, 2026 07:18
@github-actions

Copy link
Copy Markdown

Results for build job (at a11cb52):

 Test case/subcase counts did not change.

@kainino0x
kainino0x merged commit e325d0b into gpuweb:main Oct 15, 2026
1 check passed
@s-perron
s-perron deleted the user/s-perron/cmdline-multi-query branch October 15, 2026 13:26
copybara-service Bot pushed a commit to google/dawn that referenced this pull request Oct 28, 2026
-q can be given several times, --query-file reads queries or test cases
from a file or stdin, one test case per line, and all of them run in one cmdline.js session, so
a supervisor can hand the runner a batch of test cases. Single cases are
looked up by name, since a case name does not always parse back to its
own parameters. StringListOption gains SplitOnComma(false) for values
that contain commas. process.abort() is polyfilled so the same crash
fixtures run under node and the runner.

This needs the cmdline.js from gpuweb/cts#4718, in the pending CTS roll.

R=dsinclair@chromium.org

Bug: 555264246, 571890980
Change-Id: I0b664d9c616b5a6dd29fce6cb598c4465f206ef0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/352475
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Auto-Submit: Steven Perron <stevenperron@google.com>
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