forked from mirrors/gecko-dev
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
43 lines
1,012 B
Markdown
43 lines
1,012 B
Markdown
# Building
|
|
|
|
Building the project is not usually needed for local development.
|
|
However, for exports to WPT, or deployment (https://gpuweb.github.io/cts/),
|
|
files can be pre-generated.
|
|
|
|
The project builds into two directories:
|
|
|
|
- `out/`: Built framework and test files, needed to run standalone or command line.
|
|
- `out-wpt/`: Build directory for export into WPT. Contains:
|
|
- An adapter for running WebGPU CTS tests under WPT
|
|
- A copy of the needed files from `out/`
|
|
- A copy of any `.html` test cases from `src/`
|
|
|
|
To build and run all pre-submit checks (including type and lint checks and
|
|
unittests), use:
|
|
|
|
```sh
|
|
npm test
|
|
```
|
|
|
|
For checks only:
|
|
|
|
```sh
|
|
npm run check
|
|
```
|
|
|
|
For a quicker iterative build:
|
|
|
|
```sh
|
|
npm run standalone
|
|
```
|
|
|
|
## Run
|
|
|
|
To serve the built files (rather than using the dev server), run `npx grunt serve`.
|
|
|
|
## Export to WPT
|
|
|
|
Run `npm run wpt`.
|
|
|
|
Copy (or symlink) the `out-wpt/` directory as the `webgpu/` directory in your
|
|
WPT checkout or your browser's "internal" WPT test directory.
|