test-runner: Consider wgsl output as validated

The resolver is the closest thing to a validator in this case.
Enables `--generate-expected` for WGSL files that were previously marked as SKIP.

Change-Id: Id7979ec39571ff52a2beb4255d88e4eb0962b82a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54650
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
Ben Clayton 2021-06-17 12:53:54 +00:00 committed by Tint LUCI CQ
parent 74bd7919b0
commit c2c46a0533
1 changed files with 2 additions and 0 deletions

View File

@ -400,6 +400,8 @@ func (j job) run(wd, exe, dxcPath, xcrunPath string, generateExpected, generateS
// Can we validate? // Can we validate?
validate := false validate := false
switch j.format { switch j.format {
case wgsl:
validate = true
case spvasm: case spvasm:
args = append(args, "--validate") // spirv-val is statically linked, always available args = append(args, "--validate") // spirv-val is statically linked, always available
validate = true validate = true