# HG changeset patch # User Augie Fackler # Date 1520123190 18000 # Node ID 66f2e622a2ed7895fe5ff2860e8e013d943b5b69 # Parent 624cbd1477a638991b1abbc588b0e308d6873f3f fuzz: add a quick README to try and document how to test new fuzzers Differential Revision: https://phab.mercurial-scm.org/D2633 diff -r 624cbd1477a6 -r 66f2e622a2ed contrib/fuzz/README.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/fuzz/README.rst Sat Mar 03 19:26:30 2018 -0500 @@ -0,0 +1,14 @@ +How to add fuzzers (partially cribbed from oss-fuzz[0]): + + 1) git clone https://github.com/google/oss-fuzz + 2) cd oss-fuzz + 3) python infra/helper.py build_image mercurial + 4) docker run --cap-add=SYS_PTRACE -it -v $HG_REPO_PATH:/hg-new \ + gcr.io/oss-fuzz/mercurial bash + 5) cd /src + 6) rm -r mercurial + 7) ln -s /hg-new mercurial + 8) cd mercurial + 9) compile + +0: https://github.com/google/oss-fuzz/blob/master/docs/new_project_guide.md