nimbus-eth1/hive_integration/nodocker/engine/engine_sim.nim

23 lines
371 B
Nim
Raw Normal View History

import
test_env,
engine_tests,
2022-04-20 07:57:50 +00:00
unittest2,
../sim_utils
proc main() =
2022-04-20 07:57:50 +00:00
var stat: SimStat
let start = getTime()
for x in engineTestList:
2022-06-17 00:53:33 +00:00
var t = setupELClient(x.chainFile)
2022-04-20 07:57:50 +00:00
t.setRealTTD(x.ttd)
let status = x.run(t)
t.stopELClient()
stat.inc(x.name, status)
let elpd = getTime() - start
print(stat, elpd, "engine")
2022-06-17 00:53:33 +00:00
echo stat
main()