From 211407c8e24540ff16fdb7ed258c71e7b9acef31 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 2 Apr 2024 15:57:29 +0200 Subject: [PATCH] Rename flags --- tests/oss-fuzz/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/oss-fuzz/build.sh b/tests/oss-fuzz/build.sh index 517cad8782..fc4cee719e 100755 --- a/tests/oss-fuzz/build.sh +++ b/tests/oss-fuzz/build.sh @@ -120,6 +120,10 @@ then this_dir=\$(dirname \"\$0\") export TEST_DATA_DIRS=\$this_dir/corpus chmod +x \$this_dir/$fuzz_basename +ARGS=\$* +ARGS=`sed "s/-timeout=\\([0-9]\\+\\)/--fuzz_for=\1s/g" \${ARGS}` +ARGS=`sed "s/-rss_limit_mb/--rss_limit_mb/g" \${ARGS}` +ARGS=`sed "s/-runs=\\([0-9]\\+\\)/ /g}" \${ARGS}` \$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$@ chmod -x \$this_dir/$fuzz_basename" > $OUT/$TARGET_FUZZER chmod +x $OUT/$TARGET_FUZZER