Skip to content

Instantly share code, notes, and snippets.

@nevkontakte
Created November 3, 2021 14:32
Show Gist options
  • Save nevkontakte/bdc1fe7e1f30643f34606cec74c893ad to your computer and use it in GitHub Desktop.
Save nevkontakte/bdc1fe7e1f30643f34606cec74c893ad to your computer and use it in GitHub Desktop.
Run all GopherJS standard library tests
#!/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