Be more precise about which tests are disabled on macOS due to timestamp issue (#342)

This commit is contained in:
Sam Clegg
2019-08-29 14:03:32 -07:00
committed by GitHub
parent 40495c0a31
commit 3418c69437
2 changed files with 9 additions and 3 deletions

View File

@@ -68,6 +68,12 @@ print('building proper system libraries')
def test_lib_building(emcc, use_asmjs_optimizer):
# TODO(sbc): Re-enable this part of the test once this upstream emscripten fix
# makes it into a release:
# https://github.com/emscripten-core/emscripten/pull/9347
if MACOS:
return
def test_build(args, expected=None, unexpected=None):
checked_call_with_output(emcc + ' hello_world.cpp' + args,
expected=expected,
@@ -102,6 +108,7 @@ def run_emsdk(cmd):
WINDOWS = sys.platform.startswith('win')
MACOS = sys.platform == 'darwin'
upstream_emcc = os.path.join('upstream', 'emscripten', 'emcc')
fastcomp_emcc = os.path.join('fastcomp', 'emscripten', 'emcc')
@@ -121,6 +128,7 @@ run_emsdk('update-tags')
print('test latest-releases-upstream')
run_emsdk('install latest-upstream')
run_emsdk('activate latest-upstream')
test_lib_building(upstream_emcc, use_asmjs_optimizer=False)
assert open(os.path.expanduser('~/.emscripten')).read().count('LLVM_ROOT') == 1
assert 'upstream' in open(os.path.expanduser('~/.emscripten')).read()