From fc3501382c2aa3ef5b692f4f55c2616f9cade3f5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Apr 2025 12:18:00 +0200 Subject: Move toolbox scripts to a "bin" directory. Add a super "rtt" command to run the scripts. --- bin/rtt-fuzz | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/rtt-fuzz (limited to 'bin/rtt-fuzz') diff --git a/bin/rtt-fuzz b/bin/rtt-fuzz new file mode 100755 index 0000000..d7f2aef --- /dev/null +++ b/bin/rtt-fuzz @@ -0,0 +1,16 @@ +#!/bin/bash + +TITLE=$1 +shift + +if [ ! -f ./public/$TITLE/rules.js ] +then + echo usage: rtt-fuzz TITLE + exit 1 +fi + +mkdir -p fuzzer/corpus-$TITLE + +RULES=../public/$TITLE/rules.js \ + npx jazzer tools/fuzz.js --sync fuzzer/corpus-$TITLE "$@" -- -exact_artifact_path=/dev/null | \ + tee fuzzer/log-$TITLE.txt -- cgit v1.2.3