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

Method do_run

test/common.py:1439–1448  ·  view source on GitHub ↗
(self, src, expected_output=None, force_c=False, **kwargs)

Source from the content-addressed store, hash-verified

1437 'a: loaded\na: b (prev: (null))\na: c (prev: b)\n', cflags=extra_args)
1438
1439 def do_run(self, src, expected_output=None, force_c=False, **kwargs):
1440 if 'no_build' in kwargs:
1441 filename = src
1442 else:
1443 if force_c:
1444 filename = 'src.c'
1445 else:
1446 filename = 'src.cpp'
1447 create_file(filename, src)
1448 return self._build_and_run(filename, expected_output, **kwargs)
1449
1450 def do_runf(self, filename, expected_output=None, **kwargs):
1451 return self._build_and_run(filename, expected_output, **kwargs)

Callers 15

test_inetMethod · 0.45
test_inet2Method · 0.45
test_inet3Method · 0.45
test_inet4Method · 0.45
test_socketpairMethod · 0.45
test_linkMethod · 0.45
test_linking_recvMethod · 0.45
test_linking_sendMethod · 0.45

Calls 2

_build_and_runMethod · 0.95
create_fileFunction · 0.70

Tested by 15

test_inetMethod · 0.36
test_inet2Method · 0.36
test_inet3Method · 0.36
test_inet4Method · 0.36
test_socketpairMethod · 0.36
test_linkMethod · 0.36
test_linking_recvMethod · 0.36
test_linking_sendMethod · 0.36