suite: move fuzz_hardness.c to suite/fuzz/

This commit is contained in:
Nguyen Anh Quynh 2015-06-16 17:32:03 +08:00
parent 5000dec375
commit 0dbf1b9636
5 changed files with 16 additions and 1 deletions

3
.gitignore vendored
View File

@ -87,5 +87,8 @@ xcode/Capstone.xcodeproj/project.xcworkspace/xcuserdata
# suite/
test_arm_regression
test_arm_regression.o
fuzz_harness
fuzz_harness.o
*.s

10
suite/fuzz/Makefile Normal file
View File

@ -0,0 +1,10 @@
LIBNAME = capstone
fuzz_harness: fuzz_harness.o
${CC} $< -O3 -Wall -l$(LIBNAME) -o $@
%.o: %.c
${CC} -c -I../../include $< -o $@
clean:
rm -rf *.o fuzz_harness

2
suite/fuzz/README Normal file
View File

@ -0,0 +1,2 @@
This directory contains a fuzz testing harness for Capstone.
Run "make" to compile this code.

View File

@ -64,7 +64,7 @@ endif
.PHONY: all clean
SOURCES = test.c test_detail.c test_skipdata.c test_iter.c fuzz_harness.c
SOURCES = test.c test_detail.c test_skipdata.c test_iter.c
ifneq (,$(findstring arm,$(CAPSTONE_ARCHS)))
SOURCES += test_arm.c
endif