2022-02-14 12:19:52 +01:00
|
|
|
# Tests
|
|
|
|
|
|
|
|
This is a collection of tests for the libwebp libraries, currently covering
|
|
|
|
fuzzing through the APIs. Additional test vector coverage can be found at:
|
|
|
|
https://chromium.googlesource.com/webm/libwebp-test-data
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
### Fuzzers
|
|
|
|
|
|
|
|
Follow the [build instructions](../doc/building.md) for libwebp, optionally
|
|
|
|
adding build flags for various sanitizers (e.g., -fsanitize=address).
|
|
|
|
|
2024-05-31 15:02:28 +02:00
|
|
|
`-DWEBP_BUILD_FUZZTEST=ON` can then be used to compile the fuzzer targets:
|
2022-02-14 12:19:52 +01:00
|
|
|
|
|
|
|
```shell
|
2024-05-31 15:02:28 +02:00
|
|
|
$ cmake -B ./build -S . -DWEBP_BUILD_FUZZTEST=ON
|
|
|
|
$ make -C build
|
2022-02-14 12:19:52 +01:00
|
|
|
```
|