Back up overwritten configuration files (#295)

This commit is contained in:
Thomas Lively
2019-07-03 16:11:00 -07:00
committed by GitHub
parent c3f0e0fc0d
commit 35cd9268f0
2 changed files with 7 additions and 1 deletions

View File

@@ -104,7 +104,9 @@ assert not os.path.exists(LIBC)
print('test tot-upstream')
check_call('./emsdk install tot-upstream')
assert not os.path.exists(LIBC)
old_config = open(os.path.expanduser('~/.emscripten')).read()
check_call('./emsdk activate tot-upstream')
assert old_config == open(os.path.expanduser('~/.emscripten.old')).read()
assert os.path.exists(LIBC), 'activation supplies prebuilt libc' # TODO; test on latest as well
check_call('upstream/emscripten/emcc hello_world.cpp')
@@ -162,4 +164,3 @@ for os, suffix in [
url = 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries.%s' % (os, latest_hash, suffix)
print(' url: ' + url),
check_call('wget ' + url)