mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-27 04:26:07 +00:00
18587c3abe
on windows, using "localhost" for rpc test is very slow. both pyspec_sim and engine_sim will need more than one hour. while on linux and macos only few minutes.
31 lines
654 B
Nim
31 lines
654 B
Nim
import
|
|
"."/[types, test_env, engine_tests, auths_tests],
|
|
../sim_utils
|
|
|
|
proc combineTests(): seq[TestSpec] =
|
|
result = @engineTestList
|
|
result.add @authTestList
|
|
|
|
const testList = combineTests()
|
|
|
|
proc main() =
|
|
var stat: SimStat
|
|
let start = getTime()
|
|
|
|
for x in testList:
|
|
var t = setupELClient(x.chainFile, x.enableAuth)
|
|
t.setRealTTD(x.ttd)
|
|
if x.slotsToFinalized != 0:
|
|
t.slotsToFinalized(x.slotsToFinalized)
|
|
if x.slotsToSafe != 0:
|
|
t.slotsToSafe(x.slotsToSafe)
|
|
let status = x.run(t)
|
|
t.stopELClient()
|
|
stat.inc(x.name, status)
|
|
|
|
let elpd = getTime() - start
|
|
print(stat, elpd, "engine")
|
|
echo stat
|
|
|
|
main()
|