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

Method setUpClass

test/test_benchmark.py:421–436  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

419
420 @classmethod
421 def setUpClass(cls):
422 super().setUpClass()
423
424 fingerprint = ['including compilation', time.asctime()]
425 try:
426 fingerprint.append('em: ' + run_process(['git', 'show'], stdout=PIPE).stdout.splitlines()[0])
427 except Exception:
428 pass
429 try:
430 with common.chdir(os.path.expanduser('~/Dev/mozilla-central')):
431 hg_tip = run_process(['hg', 'tip'], stdout=PIPE).stdout
432 fingerprint.append('sm: ' + next(line for line in hg_tip.splitlines() if 'changeset' in line))
433 except Exception:
434 pass
435 fingerprint.append('llvm: ' + config.LLVM_ROOT)
436 print('Running Emscripten benchmarks... [ %s ]' % ' | '.join(fingerprint))
437
438 @classmethod
439 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 5

run_processFunction · 0.90
appendMethod · 0.80
nextFunction · 0.70
printFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected