Files
libwebp/tests
clang-format 44257cb826 apply clang-format
(Debian clang-format version 19.1.7 (3+build4)) with `--style=Google`.

Manual changes:
* clang-format disabled around macros with stringification (mostly
  assembly)
* some inline assembly strings were adjusted to avoid awkward line
  breaks
* trailing commas, `//` or suffixes (`ull`) added to help array
  formatting
* thread_utils.c: parameter comments were changed to the more common
  /*...=*/ style to improve formatting

The automatically generated code under swig/ was skipped.

Bug: 433996651
Change-Id: Iea3f24160d78d2a2653971cdf13fa932e47ff1b3
2025-07-31 14:53:58 -07:00
..
2025-07-31 14:53:58 -07: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 for libwebp, optionally adding build flags for various sanitizers (e.g., -fsanitize=address).

-DWEBP_BUILD_FUZZTEST=ON can then be used to compile the fuzzer targets:

$ cmake -B ./build -S . -DWEBP_BUILD_FUZZTEST=ON
$ make -C build