2016-08-29 19:01:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright 2016 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2017-04-27 13:46:07 +00:00
|
|
|
TOOLS_WASM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2016-08-29 19:01:09 +00:00
|
|
|
|
2017-04-27 13:46:07 +00:00
|
|
|
cd ${TOOLS_WASM_DIR}/../..
|
2016-08-29 19:01:09 +00:00
|
|
|
|
2017-04-28 17:22:29 +00:00
|
|
|
rm -rf test/fuzzer/wasm_corpus
|
2016-08-29 19:01:09 +00:00
|
|
|
|
2017-04-24 17:12:44 +00:00
|
|
|
tools/dev/gm.py x64.release all
|
2016-08-29 19:01:09 +00:00
|
|
|
|
2017-04-28 17:22:29 +00:00
|
|
|
mkdir -p test/fuzzer/wasm_corpus
|
2016-08-29 19:01:09 +00:00
|
|
|
|
2017-06-09 12:21:52 +00:00
|
|
|
# wasm
|
2016-08-29 19:01:09 +00:00
|
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
2016-10-26 16:56:05 +00:00
|
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
2017-04-28 17:22:29 +00:00
|
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_corpus/" unittests
|
2017-04-27 13:46:07 +00:00
|
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
2017-04-28 17:22:29 +00:00
|
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_corpus/" wasm-spec-tests/*
|
2016-08-29 19:01:09 +00:00
|
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
2016-10-26 16:56:05 +00:00
|
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
2017-04-28 17:22:29 +00:00
|
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_corpus/" mjsunit/wasm/*
|
2016-08-29 19:01:09 +00:00
|
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
2016-10-26 16:56:05 +00:00
|
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
2017-04-28 17:22:29 +00:00
|
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_corpus/" \
|
2016-08-29 19:01:09 +00:00
|
|
|
$(cd test/; ls cctest/wasm/test-*.cc | \
|
|
|
|
sed -es/wasm\\///g | sed -es/[.]cc/\\/\\*/g)
|
|
|
|
|
|
|
|
# Delete items over 20k.
|
2017-04-28 17:22:29 +00:00
|
|
|
for x in $(find ./test/fuzzer/wasm_corpus/ -type f -size +20k)
|
2016-08-29 19:01:09 +00:00
|
|
|
do
|
|
|
|
rm $x
|
|
|
|
done
|
|
|
|
|
|
|
|
# Upload changes.
|
|
|
|
cd test/fuzzer
|
2017-04-28 17:22:29 +00:00
|
|
|
upload_to_google_storage.py -a -b v8-wasm-fuzzer wasm_corpus
|