aboutsummaryrefslogtreecommitdiff
path: root/tests/ossfuzz/Makefile
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2018-11-02 20:18:45 +0200
committerLasse Collin <lasse.collin@tukaani.org>2018-11-02 20:40:14 +0200
commit106d1a663d4ba42b63231caa289f531548df81c1 (patch)
treea2af37c8a4e454b2acccd19615b804f4cb9a1830 /tests/ossfuzz/Makefile
parentliblzma: Don't verify header CRC32s if building for fuzz testing. (diff)
downloadxz-106d1a663d4ba42b63231caa289f531548df81c1.tar.xz
Tests: Add a fuzz test program and a config file for OSS-Fuzz.
Thanks to Bhargava Shastry and Github user pdknsk.
Diffstat (limited to 'tests/ossfuzz/Makefile')
-rw-r--r--tests/ossfuzz/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ossfuzz/Makefile b/tests/ossfuzz/Makefile
new file mode 100644
index 00000000..67ddbe5a
--- /dev/null
+++ b/tests/ossfuzz/Makefile
@@ -0,0 +1,7 @@
+fuzz: fuzz.c
+ $(CC) $(CFLAGS) -c fuzz.c -I ../../src/liblzma/api/
+ $(CXX) $(CXXFLAGS) -lFuzzingEngine fuzz.o -o $(OUT)/fuzz \
+ ../../src/liblzma/.libs/liblzma.a
+
+clean:
+ rm -f *.o