From c88500fca8f822bbac5e3c7c34a719648647c42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 10 May 2018 19:33:59 +0200 Subject: [PATCH] * fuzz/get_ossfuzz_corpora: Speed up corpora download --- fuzz/get_ossfuzz_corpora | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuzz/get_ossfuzz_corpora b/fuzz/get_ossfuzz_corpora index 91846bc8..1f4a9e97 100755 --- a/fuzz/get_ossfuzz_corpora +++ b/fuzz/get_ossfuzz_corpora @@ -25,7 +25,8 @@ project=wget # sync/copy the OSS-Fuzz corpora into the .new directory mkdir -p ${fuzzer}.new cp -fp ${fuzzer}.in/* ${fuzzer}.new -gsutil -m rsync gs://${project}-corpus.clusterfuzz-external.appspot.com/libFuzzer/${fuzzer} ${fuzzer}.new +gsutil cp $(gsutil ls gs://${project}-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/${fuzzer}|tail -n 1) ${fuzzer}.new +(cd ${fuzzer}.new && unzip -q -f -o *.zip && rm *.zip) # create fuzzer target BUILD_ONLY=1 ./run-clang.sh ${fuzzer}