Dongjia "toka" Zhang 62d9485f10
Use symlink instead to get the corpus (#3177)
* a

* add real symlink

* tmate

* corpus

* detmate

---------

Co-authored-by: Skynet 2 <name@domain.example>
2025-04-28 18:47:10 +02:00

43 lines
842 B
Makefile

import "../../../just/libafl.just"
FUZZER_NAME := "fuzzbench_qemu"
HARNESS_NAME := "harness"
[unix]
harness:
cc -c libfuzzer_main.c
cc \
./fuzz.c \
./libfuzzer_main.o \
-o {{ HARNESS_NAME }} \
-lm -lz
[unix]
build:
cargo build --profile {{ PROFILE }}
[unix]
run: build harness
{{ FUZZER }} \
--libafl-in ./corpus \
--libafl-out ./out \
./{{ HARNESS_NAME }} \
-- \
./{{ HARNESS_NAME }}
[unix]
test: build harness
#!/bin/bash
timeout 15s {{ FUZZER }} ./harness -- --libafl-in ./corpus --libafl-out out ./harness | tee fuzz_stdout.log
if grep -qa "objectives: 5" fuzz_stdout.log; then
echo "Fuzzer is working"
else
echo "Fuzzer does not generate any testcases or any crashes"
exit 1
fi
[unix]
clean:
cargo clean