Skip to content

Commit

Permalink
docs: explain how to target a single test
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Feb 20, 2024
1 parent 149d0af commit 2158ac7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@ platform. Here are a few to try:
If you need a flag not listed above, please let us know so we can add
it to the list.

#### Single test

Compile and run a specific test. Switch `emul` for `native`, and `/c` for `/cpp`
as needed.

```
meson test --print-errorlogs arm/neon/qabs/emul/c
```

Using `meson test` instead of `ninja` and directly executing the test
is helpful for emscripten and other architectures where are there extra steps needed
(changing the directory, using `v8` to run`, etc..).

Just compile one specific test with verbose output. Useful for debugging
compiler errors.

```
meson compile --verbose test/arm/neon/qabs-emul-c
```

### On Windows:
```bash
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" arm64
Expand Down

0 comments on commit 2158ac7

Please sign in to comment.