1 Star 0 Fork 78

angl / third_party_harfbuzz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TESTING.md 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
pssea 提交于 2021-11-05 10:55 . Description: upgrade harfbuzz 2.8.1

Build and Test

meson build
ninja -Cbuild
meson test -Cbuild

Debug with GDB

meson test -Cbuild --gdb testname

Build and Run

Depending on what area you are working in change or add HB_DEBUG_<whatever>. Values defined in hb-debug.hh.

CPPFLAGS='-DHB_DEBUG_SUBSET=100' meson setup build --reconfigure
meson test -C build

Run tests with asan

meson setup build -Db_sanitize=address --reconfigure
meson compile -C build
meson test -C build

Enable Debug Logging

CPPFLAGS=-DHB_DEBUG_SUBSET=100 meson build --reconfigure
ninja -C build

Test with the Fuzzer

CXXFLAGS="-fsanitize=address,fuzzer-no-link" meson fuzzbuild --default-library=static -Dfuzzer_ldflags="-fsanitize=address,fuzzer" -Dexperimental_api=true
ninja -Cfuzzbuild test/fuzzing/hb-{shape,draw,subset,set}-fuzzer
fuzzbuild/test/fuzzing/hb-subset-fuzzer test/fuzzing/fonts

Profiling

meson build --reconfigure
meson compile -C build
build/perf/perf
1
https://gitee.com/anguanglin/third_party_harfbuzz.git
git@gitee.com:anguanglin/third_party_harfbuzz.git
anguanglin
third_party_harfbuzz
third_party_harfbuzz
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891