e34a9964bb
I think the WebAssembly format changed since the last time we updated the corpus. R=bradnelson@chromium.org Change-Id: Ic4e24bade8cffbd43025d0961b805757a5e6f4d6 Reviewed-on: https://chromium-review.googlesource.com/485801 Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#44832}
57 lines
2.0 KiB
Bash
Executable File
57 lines
2.0 KiB
Bash
Executable File
#!/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
|
|
|
|
TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd ${TOOLS_DIR}/..
|
|
|
|
rm -rf test/fuzzer/wasm
|
|
rm -rf test/fuzzer/wasm_asmjs
|
|
|
|
tools/dev/gm.py x64.release all
|
|
|
|
mkdir -p test/fuzzer/wasm
|
|
mkdir -p test/fuzzer/wasm_asmjs
|
|
|
|
# asm.js
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_asmjs/" mjsunit/wasm/asm*
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_asmjs/" mjsunit/asm/*
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm_asmjs/" mjsunit/regress/asm/*
|
|
# WASM
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm/" unittests
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm/" mjsunit/wasm/*
|
|
./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 \
|
|
--mode=release --no-presubmit --extra-flags="--dump-wasm-module \
|
|
--dump-wasm-module-path=./test/fuzzer/wasm/" \
|
|
$(cd test/; ls cctest/wasm/test-*.cc | \
|
|
sed -es/wasm\\///g | sed -es/[.]cc/\\/\\*/g)
|
|
|
|
# Delete items over 20k.
|
|
for x in $(find ./test/fuzzer/wasm/ -type f -size +20k)
|
|
do
|
|
rm $x
|
|
done
|
|
for x in $(find ./test/fuzzer/wasm_asmjs/ -type f -size +20k)
|
|
do
|
|
rm $x
|
|
done
|
|
|
|
# Upload changes.
|
|
cd test/fuzzer
|
|
upload_to_google_storage.py -a -b v8-wasm-fuzzer wasm
|
|
upload_to_google_storage.py -a -b v8-wasm-asmjs-fuzzer wasm_asmjs
|