3c395b20cf
I also adjusted the update script because the output directory of the run.py script we call has changed. R=clemensh#chromium.org Change-Id: I432c81f1a2ffd3c96a294f771064672f7edad250 Reviewed-on: https://chromium-review.googlesource.com/817275 Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#49968}
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/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.
|
|
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
set -e
|
|
|
|
# Treat unset variables as an error when substituting.
|
|
set -u
|
|
|
|
# return value of a pipeline is the status of the last command to exit with a
|
|
# non-zero status, or zero if no command exited with a non-zero status
|
|
set -o pipefail
|
|
|
|
TOOLS_WASM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
V8_DIR="${TOOLS_WASM_DIR}/../.."
|
|
SPEC_TEST_DIR=${V8_DIR}/test/wasm-spec-tests
|
|
|
|
cd ${V8_DIR}
|
|
|
|
rm -rf ${SPEC_TEST_DIR}/tests
|
|
mkdir ${SPEC_TEST_DIR}/tests
|
|
|
|
rm -rf ${SPEC_TEST_DIR}/tmp
|
|
mkdir ${SPEC_TEST_DIR}/tmp
|
|
|
|
./tools/dev/gm.py x64.release d8
|
|
|
|
cd ${V8_DIR}/test/wasm-js/interpreter
|
|
make clean all
|
|
|
|
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 --out ${SPEC_TEST_DIR}/tmp
|
|
cp ${SPEC_TEST_DIR}/tmp/*.js ${SPEC_TEST_DIR}/tests/
|
|
rm -rf ${SPEC_TEST_DIR}/tmp
|
|
|
|
cd ${SPEC_TEST_DIR}
|
|
echo
|
|
echo "The following files will get uploaded:"
|
|
ls tests
|
|
echo
|
|
upload_to_google_storage.py -a -b v8-wasm-spec-tests tests
|