
* move to just * fuzzbench * shell check * version * rme * fixer * fixing * libpng friends * pwd * ps * ps * no fail fast.. for now * windows * l * no powershell * a * fk * fixer * a * Revert "fixer" This reverts commit 76ae72d68686ead01ef914b658c5d8dac5aaee32. * plzplz * aaaa * aa * aa * use absolute path, use LIBAFL_CC and LIBAFL_CXX * why tabs???? * this job is not fun * aa * tmate debug * disable cacheing * del * deldelg * rename * aaaa * lol * aaa * lol * lol * 2nd tmate ... * a * lol * lll * shell ck * please i'm about to cry --------- Co-authored-by: Your Name <you@example.com> Co-authored-by: Romain Malmain <romain.malmain@pm.me>
39 lines
777 B
Makefile
39 lines
777 B
Makefile
FUZZER_NAME := 'fuzzer_sd'
|
|
PROJECT_DIR := absolute_path(".")
|
|
PROFILE := 'release'
|
|
PROFILE_DIR := 'release'
|
|
CARGO_TARGET_DIR := env("CARGO_TARGET_DIR", "target")
|
|
FUZZER := CARGO_TARGET_DIR / PROFILE_DIR / FUZZER_NAME
|
|
LIBAFL_CC := CARGO_TARGET_DIR / PROFILE_DIR / "libafl_cc"
|
|
|
|
|
|
alias build := fuzzer
|
|
|
|
cc:
|
|
cargo build --profile={{PROFILE}} --bin libafl_cc
|
|
|
|
fuzzer: cc
|
|
cargo build --profile={{PROFILE}}
|
|
|
|
run: fuzzer
|
|
{{FUZZER}}
|
|
|
|
[linux]
|
|
[macos]
|
|
test: fuzzer
|
|
#!/bin/bash
|
|
timeout 30s {{FUZZER}} | tee fuzz_stdout.log || true
|
|
if grep -qa "objectives: 1" fuzz_stdout.log; then
|
|
echo "Fuzzer is working"
|
|
else
|
|
echo "Fuzzer does not generate any testcases or any crashes"
|
|
exit 1
|
|
fi
|
|
|
|
[windows]
|
|
test: fuzzer
|
|
echo "Unsupported on this platform"
|
|
|
|
clean:
|
|
cargo clean
|