Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,11 @@ def setUp(self):
self.working_dir = tempfile.mkdtemp(prefix='emscripten_test_' + self.__class__.__name__ + '_', dir=self.temp_dir)
os.chdir(self.working_dir)

# Use emscripten root for node module lookup
os.environ['NODE_PATH'] = path_from_root('node_modules')
# Include emscripten root for node module lookup (NODE_PATH may have other entries)
if len(os.environ['NODE_PATH']) > 0:
os.environ['NODE_PATH'] = os.environ['NODE_PATH'] + os.pathsep + path_from_root('node_modules')
else:
os.environ['NODE_PATH'] = path_from_root('node_modules')

if not self.save_dir:
self.has_prev_ll = False
Expand Down
28 changes: 0 additions & 28 deletions tests/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,34 +233,6 @@ def make_executable(name):
elif 'runner.py' not in ' '.join(command):
self.assertContained('ERROR', output) # sanity check should fail

def test_closure_compiler(self):
CLOSURE_FATAL = 'fatal: closure compiler'
CLOSURE_WARNING = 'does not exist'

# Sanity check should find closure
restore_and_set_up()
output = self.check_working(EMCC)
self.assertNotContained(CLOSURE_FATAL, output)
self.assertNotContained(CLOSURE_WARNING, output)

# Append a bad path for closure, will warn
f = open(CONFIG_FILE, 'a')
f.write('CLOSURE_COMPILER = "/tmp/nowhere/nothingtoseehere/kjadsfkjwelkjsdfkqgas/nonexistent.txt"\n')
f.close()
output = self.check_working(EMCC, CLOSURE_WARNING)

# And if you actually try to use the bad path, will be fatal
f = open(CONFIG_FILE, 'a')
f.write('CLOSURE_COMPILER = "/tmp/nowhere/nothingtoseehere/kjadsfkjwelkjsdfkqgas/nonexistent.txt"\n')
f.close()
output = self.check_working([EMCC, '-s', '--closure', '1'] + MINIMAL_HELLO_WORLD + ['-O2'], CLOSURE_FATAL)

# With a working path, all is well
restore_and_set_up()
try_delete('a.out.js')
output = self.check_working([EMCC, '-s', '--closure', '1'] + MINIMAL_HELLO_WORLD + ['-O2'], '')
self.assertExists('a.out.js', output)

def test_llvm(self):
LLVM_WARNING = 'LLVM version appears incorrect'

Expand Down
202 changes: 0 additions & 202 deletions third_party/closure-compiler/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions third_party/closure-compiler/README.md

This file was deleted.

Loading