Created
November 3, 2021 14:32
-
-
Save nevkontakte/bdc1fe7e1f30643f34606cec74c893ad to your computer and use it in GitHub Desktop.
Run all GopherJS standard library tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
cd "$(dirname "$0")"; | |
# Rebuild GopherJS. | |
go install -v --tags gopherjsdev .; | |
# Set up NodeJS dependencies. | |
export NVM_DIR="${HOME}/.nvm" | |
source "$NVM_DIR/nvm.sh"; | |
nvm use default; | |
export NODE_PATH="$(npm root)"; | |
npm ci; | |
# Execute standard library tests. | |
PACKAGE_NAMES=$(GOOS=js GOARCH=wasm go list std github.com/gopherjs/gopherjs/js/... github.com/gopherjs/gopherjs/tests/... \ | |
| grep -v -x -f .std_test_pkg_exclusions); | |
time gopherjs test --minify -v --short $PACKAGE_NAMES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment