Skip to content

Commit 3f1d44b

Browse files
committed
Fix tests
1 parent 21d2c2f commit 3f1d44b

12 files changed

+50
-50
lines changed

.gitignore

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ build
1313
/.emscripten_sanity_wasm
1414

1515
# Tags files that get generated at runtime
16-
/emscripten-releases-tot.txt
16+
emsdkpy/emscripten-releases-tot.txt
1717

1818
# File that get download/extracted by emsdk itself
19-
/ccache
20-
/gnu
21-
/upstream
22-
/fastcomp
23-
/fastcomp-clang/
24-
/llvm
25-
/ninja
26-
/releases
27-
/clang
28-
/emscripten
29-
/git
30-
/node
31-
/python
32-
/temp
33-
/zips
34-
/crunch
35-
/java
36-
/mingw
37-
/spidermonkey
38-
/binaryen
19+
emsdkpy/ccache
20+
emsdkpy/gnu
21+
emsdkpy/upstream
22+
emsdkpy/fastcomp
23+
emsdkpy/fastcomp-clang/
24+
emsdkpy/llvm
25+
emsdkpy/ninja
26+
emsdkpy/releases
27+
emsdkpy/clang
28+
emsdkpy/emscripten
29+
emsdkpy/git
30+
emsdkpy/node
31+
emsdkpy/python
32+
emsdkpy/temp
33+
emsdkpy/zips
34+
emsdkpy/crunch
35+
emsdkpy/java
36+
emsdkpy/mingw
37+
emsdkpy/spidermonkey
38+
emsdkpy/binaryen

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ That explains how to use the emsdk to get the latest binary builds (without
2020
compiling from source). Basically, that amounts to
2121

2222
```
23-
./emsdk install latest
24-
./emsdk activate latest
23+
emsdkpy/emsdk install latest
24+
emsdkpy/emsdk activate latest
2525
```
2626

2727
## SDK Concepts
@@ -100,8 +100,8 @@ available tools, run `emsdk list`.
100100
* If a tool/SDK is currently active, a star * will be shown next to it.
101101
* If a tool/SDK is currently active, but the terminal your are calling emsdk
102102
from does not have `PATH` and environment set up to utilize that tool, a star
103-
in parentheses (\*) will be shown next to it. Run `emsdk_env.bat` (Windows) or
104-
`source ./emsdk_env.sh` (Linux and OS X) to set up the environment for the
103+
in parentheses (\*) will be shown next to it. Run `emsdkpy/emsdk_env.bat` (Windows) or
104+
`source emsdkpy/emsdk_env.sh` (Linux and OS X) to set up the environment for the
105105
calling terminal.
106106

107107
### How do I install a tool/SDK version?

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ COPY . ${EMSDK}
2323

2424
RUN echo "## Install Emscripten" \
2525
&& cd ${EMSDK} \
26-
&& ./emsdk install ${EMSCRIPTEN_VERSION} \
26+
&& emsdkpy/emsdk install ${EMSCRIPTEN_VERSION} \
2727
&& echo "## Done"
2828

2929
# This generates configuration that contains all valid paths according to installed SDK
3030
# TODO(sbc): We should be able to use just emcc -v here but it doesn't
3131
# currently create the sanity file.
3232
RUN cd ${EMSDK} \
3333
&& echo "## Generate standard configuration" \
34-
&& ./emsdk activate ${EMSCRIPTEN_VERSION} \
34+
&& emsdkpy/emsdk activate ${EMSCRIPTEN_VERSION} \
3535
&& chmod 777 ${EMSDK}/upstream/emscripten \
3636
&& chmod -R 777 ${EMSDK}/upstream/emscripten/cache \
3737
&& echo "int main() { return 0; }" > hello.c \
@@ -41,7 +41,7 @@ RUN cd ${EMSDK} \
4141

4242
# Cleanup Emscripten installation and strip some symbols
4343
RUN echo "## Aggressive optimization: Remove debug symbols" \
44-
&& cd ${EMSDK} && . ./emsdk_env.sh \
44+
&& cd ${EMSDK} && . emsdkpy/emsdk_env.sh \
4545
# Remove debugging symbols from embedded node (extra 7MB)
4646
&& strip -s `which node` \
4747
# Tests consume ~80MB disc space

emsdk renamed to emsdkpy/emsdk

File renamed without changes.

emsdkpy/emsdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,7 +3158,7 @@ def print_tools(t):
31583158

31593159
print('Items marked with * are activated for the current user.')
31603160
if has_partially_active_tools[0]:
3161-
env_cmd = 'emsdk_env.bat' if WINDOWS else 'source ./emsdk_env.sh'
3161+
env_cmd = 'emsdk_env.bat' if WINDOWS else 'source emsdkpy/emsdk_env.sh'
31623162
print('Items marked with (*) are selected for use, but your current shell environment is not configured to use them. Type "' + env_cmd + '" to set up your current shell to use them' + (', or call "emsdk activate --permanent <name_of_sdk>" to permanently activate them.' if WINDOWS else '.'))
31633163
if not arg_old:
31643164
print('')
@@ -3168,7 +3168,7 @@ def print_tools(t):
31683168
if is_emsdk_sourced_from_github():
31693169
print('Run "git pull" to pull in the latest list.')
31703170
else:
3171-
print('Run "./emsdk update" to pull in the latest list.')
3171+
print('Run "emsdkpy/emsdk update" to pull in the latest list.')
31723172

31733173
return 0
31743174
elif cmd == 'construct_env':

emsdkpy/emsdk_env.csh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# because it won't have any effect then.
66
# That is, always run this script with
77
#
8-
# source ./emsdk_env.csh
8+
# source emsdkpy/emsdk_env.csh
99
#
1010
# instead of just plainly running with
1111
#
12-
# ./emsdk_env.csh
12+
# emsdkpy/emsdk_env.csh
1313
#
1414
# which won't have any effect.
1515
set SRC=($_)

emsdkpy/emsdk_env.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#In your Fish configuration, add this line:
2-
#alias emsdk_setup ". /path/to/emsdk/emsdk_env.fish"
2+
#alias emsdk_setup ". /path/to/emsdk/emsdkpy/emsdk_env.fish"
33
#Now, when you want to use the SDK, run this alias first to set up
44
#your environment.
55

emsdkpy/emsdk_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
# because it won't have any effect then.
1111
# That is, always run this script with
1212
#
13-
# . /path/to/emsdk_env.sh
13+
# . /path/to/emsdkpy/emsdk_env.sh
1414
#
1515
# or
1616
#
17-
# source /path/to/emsdk_env.sh
17+
# source /path/to/emsdkpy/emsdk_env.sh
1818
#
1919
# instead of just plainly running with
2020
#
21-
# ./emsdk_env.sh
21+
# emsdkpy/emsdk_env.sh
2222
#
2323
# which won't have any effect.
2424

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ console_scripts =
2323
emsdk = emsdkpy.emsdk:main
2424

2525
[options.package_data]
26-
emsdkpy = *.txt, *.bat, *.csh, *.fish, *.ps1, *.sh, *.json
26+
emsdkpy = emsdk, *.txt, *.bat, *.csh, *.fish, *.ps1, *.sh, *.json

test/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
emconfig = os.environ['EM_CONFIG']
1616
upstream_emcc = os.path.join('upstream', 'emscripten', 'emcc')
1717
fastcomp_emcc = os.path.join('fastcomp', 'emscripten', 'emcc')
18-
emsdk = './emsdk'
18+
emsdk = 'emsdkpy/emsdk'
1919
if WINDOWS:
2020
upstream_emcc += '.bat'
2121
fastcomp_emcc += '.bat'
22-
emsdk = 'emsdk.bat'
22+
emsdk = 'emsdkpy/emsdk.bat'
2323
else:
24-
emsdk = './emsdk'
24+
emsdk = 'emsdkpy/emsdk'
2525

2626
# Utilities
2727

test/test.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ set -e
77

88
# Test that arbitrary (non-released) versions can be installed and
99
# activated.
10-
./emsdk install sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
11-
./emsdk activate sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
12-
source ./emsdk_env.sh
10+
emsdkpy/emsdk install sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
11+
emsdkpy/emsdk activate sdk-upstream-5c776e6a91c0cb8edafca16a652ee1ee48f4f6d2
12+
source emsdkpy/emsdk_env.sh
1313
which emcc
1414
emcc -v
1515

1616
# Install an older version of the SDK that requires EM_CACHE to be
1717
# set in the environment, so that we can test it is later removed
18-
./emsdk install sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b
19-
./emsdk activate sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b
20-
source ./emsdk_env.sh
18+
emsdkpy/emsdk install sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b
19+
emsdkpy/emsdk activate sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b
20+
source emsdkpy/emsdk_env.sh
2121
which emcc
2222
emcc -v
2323
test -n "$EM_CACHE"
2424

2525
# Install the latest version of the SDK which is the expected precondition
2626
# of test.py.
27-
./emsdk install latest
28-
./emsdk activate latest
29-
source ./emsdk_env.sh --build=Release
27+
emsdkpy/emsdk install latest
28+
emsdkpy/emsdk activate latest
29+
source emsdkpy/emsdk_env.sh --build=Release
3030
# Test that EM_CACHE was unset
3131
test -z "$EM_CACHE"
3232

test/test_source_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mkdir -p "$ABS_LINK_DIR"
2929
(cd $DIR/.. && ln -s `pwd` "$ABS_LINK_DIR/emsdk")
3030
(cd $DIR/.. && ln -s `pwd`/emsdk_env.sh "$ABS_LINK_DIR")
3131

32-
PATH1="$DIR/../emsdk_env.sh"
32+
PATH1="$DIR/emsdk_env.sh"
3333
PATH2="$REL_LINK_DIR/emsdk/emsdk_env.sh"
3434
PATH3="$REL_LINK_DIR/emsdk_env.sh"
3535
PATH4="$ABS_LINK_DIR/emsdk/emsdk_env.sh"

0 commit comments

Comments
 (0)