2023-11-01 10:32:09 +07:00
|
|
|
# Nimbus
|
2024-04-17 17:31:37 +07:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-11-01 10:32:09 +07:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
2022-04-11 17:00:39 +07:00
|
|
|
import
|
2023-09-06 16:18:26 +07:00
|
|
|
std/times,
|
2023-10-19 10:28:52 +07:00
|
|
|
chronicles,
|
2024-05-30 14:54:03 +02:00
|
|
|
results,
|
2023-09-06 16:18:26 +07:00
|
|
|
./types,
|
2023-10-19 10:28:52 +07:00
|
|
|
../sim_utils,
|
|
|
|
../../../nimbus/core/eip4844
|
2022-04-11 17:00:39 +07:00
|
|
|
|
2023-08-08 10:44:29 +07:00
|
|
|
import
|
2024-10-29 22:06:52 +07:00
|
|
|
./engine_tests,
|
2023-08-08 10:44:29 +07:00
|
|
|
./auths_tests,
|
2024-10-29 22:06:52 +07:00
|
|
|
./exchange_cap_tests,
|
|
|
|
./withdrawal_tests,
|
|
|
|
./cancun_tests
|
2023-08-08 10:44:29 +07:00
|
|
|
|
2023-08-21 09:08:54 +07:00
|
|
|
proc combineTests(): seq[TestDesc] =
|
2024-09-04 16:54:54 +07:00
|
|
|
#result.add wdTestList
|
2023-11-03 09:24:51 +07:00
|
|
|
result.add ecTestList
|
|
|
|
result.add authTestList
|
2024-09-04 16:54:54 +07:00
|
|
|
#result.add engineTestList
|
|
|
|
#result.add cancunTestList
|
2022-07-18 11:34:42 +07:00
|
|
|
|
2023-08-21 09:08:54 +07:00
|
|
|
let
|
|
|
|
testList = combineTests()
|
2022-07-18 11:34:42 +07:00
|
|
|
|
2022-04-11 17:00:39 +07:00
|
|
|
proc main() =
|
2022-04-20 14:57:50 +07:00
|
|
|
var stat: SimStat
|
|
|
|
let start = getTime()
|
|
|
|
|
2023-10-19 10:28:52 +07:00
|
|
|
let res = loadKzgTrustedSetup()
|
|
|
|
if res.isErr:
|
|
|
|
fatal "Cannot load baked in Kzg trusted setup", msg=res.error
|
|
|
|
quit(QuitFailure)
|
|
|
|
|
2022-07-18 11:34:42 +07:00
|
|
|
for x in testList:
|
2023-08-21 09:08:54 +07:00
|
|
|
let status = if x.run(x.spec):
|
|
|
|
TestStatus.OK
|
|
|
|
else:
|
|
|
|
TestStatus.Failed
|
2023-08-08 10:44:29 +07:00
|
|
|
stat.inc(x.name, status)
|
|
|
|
|
2022-04-20 14:57:50 +07:00
|
|
|
let elpd = getTime() - start
|
|
|
|
print(stat, elpd, "engine")
|
2022-06-17 07:53:33 +07:00
|
|
|
echo stat
|
2022-04-11 17:00:39 +07:00
|
|
|
|
|
|
|
main()
|