| 1 |
# Tests |
| 2 |
|
| 3 |
This is a collection of tests for the libwebp libraries, currently covering |
| 4 |
fuzzing through the APIs. Additional test vector coverage can be found at: |
| 5 |
https://chromium.googlesource.com/webm/libwebp-test-data |
| 6 |
|
| 7 |
## Building |
| 8 |
|
| 9 |
### Fuzzers |
| 10 |
|
| 11 |
Follow the [build instructions](../doc/building.md) for libwebp, optionally |
| 12 |
adding build flags for various sanitizers (e.g., -fsanitize=address). |
| 13 |
|
| 14 |
`-DWEBP_BUILD_FUZZTEST=ON` can then be used to compile the fuzzer targets: |
| 15 |
|
| 16 |
```shell |
| 17 |
$ cmake -B ./build -S . -DWEBP_BUILD_FUZZTEST=ON |
| 18 |
$ make -C build |
| 19 |
``` |