2019-08-29 00:35:36 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2019-06-05 10:19:20 -07:00
|
|
|
echo "test the standard workflow (as close as possible to how a user would do it, in the shell)"
|
2019-08-29 00:35:36 -07:00
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
set -e
|
|
|
|
|
|
2021-03-05 12:51:04 -08:00
|
|
|
# Test that arbitrary (non-released) versions can be installed and
|
|
|
|
|
# activated.
|
|
|
|
|
./emsdk install sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
|
|
|
|
|
./emsdk activate sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
|
|
|
|
|
source ./emsdk_env.sh
|
|
|
|
|
which emcc
|
|
|
|
|
emcc -v
|
|
|
|
|
|
2019-06-05 10:19:20 -07:00
|
|
|
./emsdk install latest
|
|
|
|
|
./emsdk activate latest
|
|
|
|
|
source ./emsdk_env.sh --build=Release
|
2020-07-21 10:21:02 -07:00
|
|
|
# On mac and windows python3 should be in the path and point to the
|
|
|
|
|
# bundled version.
|
|
|
|
|
which python3
|
2021-03-05 12:51:04 -08:00
|
|
|
which emcc
|
2019-06-26 13:13:48 -07:00
|
|
|
emcc -v
|