comparison contrib/fuzz/Makefile @ 41024:6a951f535fee

fuzz: new fuzzer for parsers.fm1readmarkers Differential Revision: https://phab.mercurial-scm.org/D5465
author Augie Fackler <augie@google.com>
date Thu, 20 Dec 2018 01:22:58 -0500
parents b444407f635b
children c01fac6749e5
comparison
equal deleted inserted replaced
41016:5c68b617ba24 41024:6a951f535fee
144 -o $$OUT/dirstate_fuzzer 144 -o $$OUT/dirstate_fuzzer
145 145
146 dirstate_corpus.zip: 146 dirstate_corpus.zip:
147 python dirstate_corpus.py $$OUT/dirstate_fuzzer_seed_corpus.zip 147 python dirstate_corpus.py $$OUT/dirstate_fuzzer_seed_corpus.zip
148 148
149 fm1readmarkers_fuzzer: sanpy fm1readmarkers.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
150 $(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
151 -Wno-register -Wno-macro-redefined \
152 -I../../mercurial fm1readmarkers.cc \
153 manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \
154 -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \
155 -o $$OUT/fm1readmarkers_fuzzer
156
157 fm1readmarkers_corpus.zip:
158 python fm1readmarkers_corpus.py $$OUT/fm1readmarkers_fuzzer_seed_corpus.zip
159
149 clean: 160 clean:
150 $(RM) *.o *_fuzzer \ 161 $(RM) *.o *_fuzzer \
151 bdiff \ 162 bdiff \
152 mpatch \ 163 mpatch \
153 xdiff 164 xdiff
154 165
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 166 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 fm1readmarkers_fuzzer fm1readmarkers_corpus.zip
156 167
157 .PHONY: all clean oss-fuzz sanpy 168 .PHONY: all clean oss-fuzz sanpy