From 812a84a863a0b58087e2d15805648edf02e99d8f Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Tue, 27 Aug 2019 15:11:52 +1000 Subject: [PATCH 1/2] Call ./fuzzit with the correct arguments Local regression needs `--local` and `--type regression`, not `--type=local-regression`. --- fuzzit.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fuzzit.sh b/fuzzit.sh index 24b05a2..585f81c 100755 --- a/fuzzit.sh +++ b/fuzzit.sh @@ -25,5 +25,13 @@ clang -fsanitize=fuzzer parse-complex.a -o parse-complex wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.29/fuzzit_Linux_x86_64 chmod a+x fuzzit +if ${1} == "local-regression"; then + LOCAL="--local" + TYPE=regression +else + LOCAL="" + TYPE=fuzzing +fi + ## upload fuzz target for long fuzz testing on fuzzit.dev server or run locally for regression -./fuzzit create job --type ${1} fuzzitdev/parse-complex parse-complex +./fuzzit create job ${LOCAL} --type ${TYPE} fuzzitdev/parse-complex parse-complex From dc3380fe96feaef1e2e66d4ffa7db47ae6d017ed Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Tue, 27 Aug 2019 15:12:42 +1000 Subject: [PATCH 2/2] Fix a typo. --- fuzzit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzit.sh b/fuzzit.sh index 585f81c..50cd639 100755 --- a/fuzzit.sh +++ b/fuzzit.sh @@ -25,7 +25,7 @@ clang -fsanitize=fuzzer parse-complex.a -o parse-complex wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.29/fuzzit_Linux_x86_64 chmod a+x fuzzit -if ${1} == "local-regression"; then +if [ ${1} == "local-regression" ]; then LOCAL="--local" TYPE=regression else