[docs] add fuzzer instructions (courtesy of Garret)
authorrsheeter <rsheeter@google.com>
Wed, 8 May 2019 16:47:34 +0000 (09:47 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 8 May 2019 16:50:42 +0000 (09:50 -0700)
TESTING.md

index 91b6abd..6bbf7bc 100644 (file)
@@ -45,3 +45,13 @@ cd harfbuzz
 mkdir buid
 cmake -DHB_CHECK=ON -Bbuild -H. -GNinja && ninja -Cbuild && CTEST_OUTPUT_ON_FAILURE=1 ninja -Cbuild test
 ```
+## Test with the Fuzzer
+
+```shell
+# push your changs to a branch on googlefonts/harfbuzz
+# In a local copy of oss-fuzz, edit projects/harfbuzz/Dockerfile
+# Change the git clone to pull your branch
+sudo python infra/helper.py build_image harfbuzz
+sudo python infra/helper.py build_fuzzers --sanitizer address harfbuzz
+sudo python infra/helper.py run_fuzzer harfbuzz hb-subset-fuzzer
+```