Commit dc713be8 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[wasm] Move update scripts to tools/wasm

I moved the wasm update scripts from tools/ to tools/wasm. In addition
I cleaned up the scripts a bit.

R=machenbach@chromium.org

Change-Id: I545dd556712e272e6509b78e343e9063346abe56
Reviewed-on: https://chromium-review.googlesource.com/488601Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44940}
parent cfdffe2b
1a9fb04f02e5602c8266e9f01e5358ce836bed64
\ No newline at end of file
a957f05aee9163fc8ee5bf9d66508480aba88152
\ No newline at end of file
ffc5bea8aaef065be5e79975ba04a6d34151b813
\ No newline at end of file
5b7636100ebdc0b1d40def9807efbd310d179b6f
\ No newline at end of file
......@@ -16,8 +16,6 @@ class WasmSpecTestsTestSuite(testsuite.TestSuite):
for dirname, dirs, files in os.walk(self.root):
for dotted in [x for x in dirs if x.startswith('.')]:
dirs.remove(dotted)
dirs.sort()
files.sort()
for filename in files:
if (filename.endswith(".js")):
fullpath = os.path.join(dirname, filename)
......
cf636dce30e87016854d6bbeb0af141621630fea
\ No newline at end of file
5f9abe489629911cd1ea4c47f45ae2b3f9050a44
\ No newline at end of file
......@@ -5,9 +5,9 @@
set -e
TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TOOLS_WASM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${TOOLS_DIR}/..
cd ${TOOLS_WASM_DIR}/../..
rm -rf test/fuzzer/wasm
rm -rf test/fuzzer/wasm_asmjs
......@@ -24,13 +24,13 @@ mkdir -p test/fuzzer/wasm_asmjs
./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/" wasm-spec-tests/*
./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/*
......
......@@ -5,25 +5,26 @@
set -e
TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TOOLS_WASM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
V8_DIR="${TOOLS_WASM_DIR}/../.."
cd ${TOOLS_DIR}/..
cd ${V8_DIR}
mkdir -p ./test/wasm-spec-tests/tests/
rm -rf ./test/wasm-spec-tests/tests/*
./tools/dev/gm.py x64.release all
cd ${TOOLS_DIR}/../test/wasm-js/interpreter
cd ${V8_DIR}/test/wasm-js/interpreter
make
cd ${TOOLS_DIR}/../test/wasm-js/test/core
cd ${V8_DIR}/test/wasm-js/test/core
./run.py --wasm ${TOOLS_DIR}/../test/wasm-js/interpreter/wasm --js ${TOOLS_DIR}/../out/x64.release/d8
./run.py --wasm ${V8_DIR}/test/wasm-js/interpreter/wasm --js ${V8_DIR}/out/x64.release/d8
cp ${TOOLS_DIR}/../test/wasm-js/test/core/output/*.js ${TOOLS_DIR}/../test/wasm-spec-tests/tests
cp ${V8_DIR}/test/wasm-js/test/core/output/*.js ${V8_DIR}/test/wasm-spec-tests/tests
cd ${TOOLS_DIR}/../test/wasm-spec-tests
cd ${V8_DIR}/test/wasm-spec-tests
upload_to_google_storage.py -a -b v8-wasm-spec-tests tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment