[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/488601 Reviewed-by: Michael Achenbach <machenbach@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#44940}
This commit is contained in:
parent
cfdffe2be3
commit
dc713be87d
@ -1 +1 @@
|
||||
1a9fb04f02e5602c8266e9f01e5358ce836bed64
|
||||
a957f05aee9163fc8ee5bf9d66508480aba88152
|
@ -1 +1 @@
|
||||
ffc5bea8aaef065be5e79975ba04a6d34151b813
|
||||
5b7636100ebdc0b1d40def9807efbd310d179b6f
|
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
cf636dce30e87016854d6bbeb0af141621630fea
|
||||
5f9abe489629911cd1ea4c47f45ae2b3f9050a44
|
@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2017 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}/..
|
||||
|
||||
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
|
||||
make
|
||||
|
||||
cd ${TOOLS_DIR}/../test/wasm-js/test/core
|
||||
|
||||
./run.py --wasm ${TOOLS_DIR}/../test/wasm-js/interpreter/wasm --js ${TOOLS_DIR}/../out/x64.release/d8
|
||||
|
||||
cp ${TOOLS_DIR}/../test/wasm-js/test/core/output/*.js ${TOOLS_DIR}/../test/wasm-spec-tests/tests
|
||||
|
||||
cd ${TOOLS_DIR}/../test/wasm-spec-tests
|
||||
upload_to_google_storage.py -a -b v8-wasm-spec-tests tests
|
||||
|
||||
|
@ -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/*
|
30
tools/wasm/update-wasm-spec-tests.sh
Executable file
30
tools/wasm/update-wasm-spec-tests.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2017 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_WASM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
V8_DIR="${TOOLS_WASM_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 ${V8_DIR}/test/wasm-js/interpreter
|
||||
make
|
||||
|
||||
cd ${V8_DIR}/test/wasm-js/test/core
|
||||
|
||||
./run.py --wasm ${V8_DIR}/test/wasm-js/interpreter/wasm --js ${V8_DIR}/out/x64.release/d8
|
||||
|
||||
cp ${V8_DIR}/test/wasm-js/test/core/output/*.js ${V8_DIR}/test/wasm-spec-tests/tests
|
||||
|
||||
cd ${V8_DIR}/test/wasm-spec-tests
|
||||
upload_to_google_storage.py -a -b v8-wasm-spec-tests tests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user