Skip to content

Commit ed35e74

Browse files
committed
fix tests
1 parent 9e7f798 commit ed35e74

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

test.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def hack_emsdk(marker, replacement):
6161
# Tests
6262

6363
print('test .emscripten contents (latest was installed/activated in test.sh)')
64-
assert 'fastcomp' in open(os.path.expanduser('~/.emscripten')).read()
65-
assert 'upstream' not in open(os.path.expanduser('~/.emscripten')).read()
64+
assert 'fastcomp' not in open(os.path.expanduser('~/.emscripten')).read()
65+
assert 'upstream' in open(os.path.expanduser('~/.emscripten')).read()
6666

6767
print('building proper system libraries')
6868

@@ -119,18 +119,17 @@ def run_emsdk(cmd):
119119
print('update')
120120
run_emsdk('update-tags')
121121

122-
print('test latest-releases-upstream')
123-
run_emsdk('install latest-upstream')
124-
run_emsdk('activate latest-upstream')
122+
print('test latest-releases-fastcomp')
123+
run_emsdk('install latest-fastcomp')
124+
run_emsdk('activate latest-fastcomp')
125125

126-
test_lib_building(upstream_emcc, use_asmjs_optimizer=False)
126+
test_lib_building(fastcomp_emcc, use_asmjs_optimizer=False)
127127
assert open(os.path.expanduser('~/.emscripten')).read().count('LLVM_ROOT') == 1
128-
assert 'upstream' in open(os.path.expanduser('~/.emscripten')).read()
129-
assert 'fastcomp' not in open(os.path.expanduser('~/.emscripten')).read()
130-
128+
assert 'upstream' not in open(os.path.expanduser('~/.emscripten')).read()
129+
assert 'fastcomp' in open(os.path.expanduser('~/.emscripten')).read()
131130

132131
print('verify version')
133-
checked_call_with_output(upstream_emcc + ' -v', TAGS['latest'], stderr=subprocess.STDOUT)
132+
checked_call_with_output(fastcomp_emcc + ' -v', TAGS['latest'], stderr=subprocess.STDOUT)
134133

135134
print('clear cache')
136135
check_call(upstream_emcc + ' --clear-cache')
@@ -160,8 +159,8 @@ def run_emsdk(cmd):
160159
print('another install must re-download')
161160
checked_call_with_output(emsdk + ' install 1.38.33', expected='Downloading:', unexpected='already exist in destination')
162161
run_emsdk('activate 1.38.33')
163-
assert 'fastcomp' in open(os.path.expanduser('~/.emscripten')).read()
164-
assert 'upstream' not in open(os.path.expanduser('~/.emscripten')).read()
162+
assert 'upstream' in open(os.path.expanduser('~/.emscripten')).read()
163+
assert 'fastcomp' not in open(os.path.expanduser('~/.emscripten')).read()
165164

166165
print('test specific release (new, full name)')
167166
run_emsdk('install sdk-1.38.33-upstream-64bit')

0 commit comments

Comments
 (0)