fune/dom/webgpu/tests/cts/checkout/docs/deno.md
Erich Gubler 07d5552a55 Bug 1720941, part 2: tests(ci): now do the actual vendoring r=webgpu-reviewers,taskgraph-reviewers,jmaher,jimb
After implementing vendoring in part 1, it's time to run it! This patch was broken out from part 1 to isolate very tedious portion of the review. Most of this patch is composed of:

1. Generated CTS test files from part 1.
2. A massive wall of test expectation management acknowledging current passes and failures. Currently, Linux and Windows are expected to pass with these noted failures. Many, but not all, current failures on MacOS are recorded.

Differential Revision: https://phabricator.services.mozilla.com/D169953
2023-03-15 20:13:45 +00:00

918 B

Running the CTS on Deno

Since version 1.8, Deno experimentally implements the WebGPU API out of the box. You can use the ./tools/deno script to run the CTS in Deno. To do this you will first need to install Deno: stable, or build the main branch from source (cargo install --git https://github.com/denoland/deno --bin deno).

On macOS and recent Linux, you can just run ./tools/run_deno as is. On Windows and older Linux releases you will need to run deno run --unstable --allow-read --allow-write --allow-env ./tools/deno.

Usage

Usage:
  tools/run_deno [OPTIONS...] QUERIES...
  tools/run_deno 'unittests:*' 'webgpu:buffers,*'
Options:
  --verbose       Print result/log of every test as it runs.
  --debug         Include debug messages in logging.
  --print-json    Print the complete result JSON in the output.
  --expectations  Path to expectations file.