2022-04-11 10:00:39 +00:00
|
|
|
import
|
|
|
|
test_env,
|
|
|
|
engine_tests,
|
2022-04-20 07:57:50 +00:00
|
|
|
unittest2,
|
|
|
|
../sim_utils
|
2022-04-11 10:00:39 +00:00
|
|
|
|
|
|
|
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
|
2022-04-11 10:00:39 +00:00
|
|
|
|
|
|
|
main()
|