dawn-cmake/test
David Neto 58a3624935 Add --dump-spirv option to tint_unittests
The --dump-spirv option tells tint_unittests to output the
SPIR-V assembly text for a module which did not make the SPIR-V reader
fail.  This lets us get extract a corpus of SPIR-V modules, and
lets us more easily verify that the test shaders are valid in the first
place.

Also:
- Add test/extract-spvasm.py to split that output to separate SPIR-V
  assembly files
- Add optional second argument test/test-all.sh to specify a directory
  look for input files.
- BUILD.gn:  Add dependency from //test:tint_unittests_main to
  //test:tint_unittests_config to pick up source dependency on
  the internal header of the SPIRV-Tools optimizer, needed by
  the indirection through src/reader/spirv/parser_impl_test_helper.h

This is useful for bulk testing

Fixed: tint:756
Change-Id: I4fe232ac736003f7d9be35544328302d652381ea
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/49605
Auto-Submit: David Neto <dneto@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-05-05 09:46:31 +00:00
..
BUILD.gn Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
bug_tint_749.spvasm reader/spirv: Clean up disjoint AST nodes 2021-04-30 10:43:19 +00:00
compute_boids.wgsl resolver: Validate uniform buffer types 2021-04-21 17:55:12 +00:00
cube.wgsl resolver: Validate uniform buffer types 2021-04-21 17:55:12 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
function.wgsl wgsl: Deprecate '-> void' on functions 2021-04-08 14:39:47 +00:00
simple.wgsl wgsl: Deprecate '-> void' on functions 2021-04-08 14:39:47 +00:00
simple_vertex.spvasm test: Add simple_vertex.spvasm 2021-04-26 10:46:55 +00:00
test-all.sh Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
triangle.wgsl wgsl: Deprecate 'const' for 'let' 2021-04-08 15:46:17 +00:00