Move tests to "test" directory. NFC. (#745)

This commit is contained in:
Sam Clegg
2021-03-08 08:03:07 -08:00
committed by GitHub
parent f0ee795014
commit 7d155f8424
8 changed files with 14 additions and 14 deletions

25
test/test_bazel.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
echo "test bazel"
set -x
set -e
# Get the latest version number from emscripten-releases-tag.txt.
VER=$(grep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
emscripten-releases-tags.txt \
| sed --expression "s/\./\\\./g")
# Based on the latest version number, get the commit hash for that version.
HASH=$(grep "${VER}" emscripten-releases-tags.txt \
| grep -v latest \
| cut -f4 -d\")
FAILMSG="!!! scripts/update_bazel_toolchain.sh needs to be run !!!"
# Ensure the WORKSPACE file is up to date with the latest version.
grep ${VER} bazel/WORKSPACE || (echo ${FAILMSG} && false)
grep ${HASH} bazel/WORKSPACE || (echo ${FAILMSG} && false)
cd bazel
bazel build //hello-world:hello-world-wasm
bazel build //hello-world:hello-world-wasm-simd