Patchwork D2633: fuzz: add a quick README to try and document how to test new fuzzers

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 3:24 a.m.
Message ID <991ae2bf2800374527be06ced780e829@localhost.localdomain>
Download mbox | patch
Permalink /patch/28899/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 3:24 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3f829cbdfe3a: fuzz: add a quick README to try and document how to test new fuzzers (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2633?vs=6532&id=6534

REVISION DETAIL
  https://phab.mercurial-scm.org/D2633

AFFECTED FILES
  contrib/fuzz/README.rst

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/contrib/fuzz/README.rst b/contrib/fuzz/README.rst
new file mode 100644
--- /dev/null
+++ b/contrib/fuzz/README.rst
@@ -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