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

37 lines
627 B
Nim
Raw Normal View History

import
std/times,
./types,
2022-04-20 07:57:50 +00:00
../sim_utils
import
./engine_tests,
./auths_tests,
2023-08-21 02:08:54 +00:00
./exchange_cap_tests,
./withdrawal_tests
2023-08-21 02:08:54 +00:00
proc combineTests(): seq[TestDesc] =
result.add wdTestList
2023-08-21 02:08:54 +00:00
result.add ecTestList
result.add authTestList
result.add engineTestList
2023-08-21 02:08:54 +00:00
let
testList = combineTests()
proc main() =
2022-04-20 07:57:50 +00:00
var stat: SimStat
let start = getTime()
for x in testList:
2023-08-21 02:08:54 +00:00
let status = if x.run(x.spec):
TestStatus.OK
else:
TestStatus.Failed
stat.inc(x.name, status)
2022-04-20 07:57:50 +00:00
let elpd = getTime() - start
print(stat, elpd, "engine")
2022-06-17 00:53:33 +00:00
echo stat
main()