Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/harfbuzz/TESTING.md @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 ## Build and Test | |
| 2 | |
| 3 ```shell | |
| 4 meson build | |
| 5 ninja -Cbuild | |
| 6 meson test -Cbuild | |
| 7 ``` | |
| 8 | |
| 9 ### Debug with GDB | |
| 10 | |
| 11 ```shell | |
| 12 meson test -Cbuild --gdb testname | |
| 13 ``` | |
| 14 | |
| 15 ## Build and Run | |
| 16 | |
| 17 Depending on what area you are working in change or add `HB_DEBUG_<whatever>`. | |
| 18 Values defined in `hb-debug.hh`. | |
| 19 | |
| 20 ```shell | |
| 21 CPPFLAGS='-DHB_DEBUG_SUBSET=100' meson setup build --reconfigure | |
| 22 meson test -C build | |
| 23 ``` | |
| 24 | |
| 25 ### Run tests with asan | |
| 26 | |
| 27 ```shell | |
| 28 meson setup build -Db_sanitize=address --reconfigure | |
| 29 meson compile -C build | |
| 30 meson test -C build | |
| 31 ``` | |
| 32 | |
| 33 ### Enable Debug Logging | |
| 34 | |
| 35 ```shell | |
| 36 CPPFLAGS=-DHB_DEBUG_SUBSET=100 meson build --reconfigure | |
| 37 ninja -C build | |
| 38 ``` | |
| 39 | |
| 40 ## Test with the Fuzzer | |
| 41 | |
| 42 FOr fuzzing, see `test/fuzzing/README.md`. | |
| 43 | |
| 44 ## Profiling | |
| 45 | |
| 46 For profiling, see `perf/README.md`. | |
| 47 |
