MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_bitcode_input

Method test_bitcode_input

test/test_other.py:12102–12108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12100 self.assertContained(outcome, proc.stderr)
12101
12102 def test_bitcode_input(self):
12103 # Verify that bitcode files are accepted as input
12104 create_file('main.c', 'void foo(); int main() { return 0; }')
12105 self.run_process([EMCC, '-emit-llvm', '-c', '-o', 'main.bc', 'main.c'])
12106 self.assertTrue(is_bitcode('main.bc'))
12107 self.run_process([EMCC, '-c', '-o', 'main.o', 'main.bc'])
12108 self.assertTrue(building.is_wasm('main.o'))
12109
12110 @with_env_modify({'EMCC_LOGGING': '0'}) # this test assumes no emcc output
12111 def test_nostdlib(self):

Callers

nothing calls this directly

Calls 4

create_fileFunction · 0.90
is_bitcodeFunction · 0.85
run_processMethod · 0.80
is_wasmMethod · 0.80

Tested by

no test coverage detected