Mercurial > hg
comparison contrib/fuzz/Makefile @ 41015:b444407f635b
fuzz: new fuzzer for dirstate parser
Differential Revision: https://phab.mercurial-scm.org/D5463
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 19 Dec 2018 23:48:35 -0500 |
parents | c06f0ef9a5ba |
children | 6a951f535fee |
comparison
equal
deleted
inserted
replaced
41014:c06f0ef9a5ba | 41015:b444407f635b |
---|---|
133 -o $$OUT/revlog_fuzzer | 133 -o $$OUT/revlog_fuzzer |
134 | 134 |
135 revlog_corpus.zip: | 135 revlog_corpus.zip: |
136 python revlog_corpus.py $$OUT/revlog_fuzzer_seed_corpus.zip | 136 python revlog_corpus.py $$OUT/revlog_fuzzer_seed_corpus.zip |
137 | 137 |
138 dirstate_fuzzer: sanpy dirstate.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o | |
139 $(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \ | |
140 -Wno-register -Wno-macro-redefined \ | |
141 -I../../mercurial dirstate.cc \ | |
142 manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \ | |
143 -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \ | |
144 -o $$OUT/dirstate_fuzzer | |
145 | |
146 dirstate_corpus.zip: | |
147 python dirstate_corpus.py $$OUT/dirstate_fuzzer_seed_corpus.zip | |
148 | |
138 clean: | 149 clean: |
139 $(RM) *.o *_fuzzer \ | 150 $(RM) *.o *_fuzzer \ |
140 bdiff \ | 151 bdiff \ |
141 mpatch \ | 152 mpatch \ |
142 xdiff | 153 xdiff |
143 | 154 |
144 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer manifest_fuzzer manifest_corpus.zip revlog_fuzzer revlog_corpus.zip | 155 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer manifest_fuzzer manifest_corpus.zip revlog_fuzzer revlog_corpus.zip dirstate_fuzzer dirstate_corpus.zip |
145 | 156 |
146 .PHONY: all clean oss-fuzz sanpy | 157 .PHONY: all clean oss-fuzz sanpy |