Skip to content

Commit

Permalink
suite: move fuzz_hardness.c to suite/fuzz/
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jun 16, 2015
1 parent 99ed490 commit d8d11ed
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 10 additions & 0 deletions suite/fuzz/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions suite/fuzz/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This directory contains a fuzz testing harness for Capstone.
Run "make" to compile this code.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8d11ed

Please sign in to comment.