aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fuzzit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fuzzit.sh')
-rwxr-xr-xtools/fuzzit.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/fuzzit.sh b/tools/fuzzit.sh
index a056b7c3a..780ce4db5 100755
--- a/tools/fuzzit.sh
+++ b/tools/fuzzit.sh
@@ -7,13 +7,16 @@
set -eux
export TYPE="${1}"
+export GOBIN=$(realpath .)/bin
function target {
- go-fuzz-build -libfuzzer -func $3 -o fuzzer.a $2
+ bin/go-fuzz-build -libfuzzer -func $3 -o fuzzer.a $2
clang -fsanitize=fuzzer fuzzer.a -o fuzzer
./fuzzit create job --type "${TYPE}" --branch ${GITHUB_REF#refs/heads/} --revision ${GITHUB_SHA} syzkaller/$1 ./fuzzer
}
+go install github.com/dvyukov/go-fuzz/go-fuzz-build
+
curl -L --output fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.77/fuzzit_Linux_x86_64
chmod a+x fuzzit