2018-09-19 16:46:14 +00:00
|
|
|
# Nimbus
|
|
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# XXX: when all but a relative few dozen, say, GeneralStateTests run, remove this,
|
|
|
|
# but for now, this enables some CI use before that to prevent regressions. In the
|
|
|
|
# separate file here because it would otherwise just distract. Could use all sorts
|
|
|
|
# of O(1) or O(log n) lookup structures, or be more careful to only initialize the
|
|
|
|
# table once, but notion's that it should shrink reasonable quickly and disappear,
|
|
|
|
# being mostly used for short-term regression prevention.
|
|
|
|
func allowedFailingGeneralStateTest*(folder, name: string): bool =
|
2019-03-11 05:12:35 +00:00
|
|
|
let allowedFailingGeneralStateTests = @[
|
2019-05-10 08:02:39 +00:00
|
|
|
# conflicts between native int and big int.
|
|
|
|
# gasFee calculation in modexp precompiled
|
|
|
|
# contracts
|
2019-04-24 15:37:34 +00:00
|
|
|
"modexp.json",
|
2019-05-10 08:02:39 +00:00
|
|
|
# perhaps a design flaw with create/create2 opcode.
|
|
|
|
# a conflict between balance checker and
|
|
|
|
# static call context checker
|
2019-05-07 03:47:16 +00:00
|
|
|
"create2noCash.json",
|
2019-09-07 10:09:23 +00:00
|
|
|
|
2019-11-18 13:49:24 +00:00
|
|
|
# Istanbul bc test
|
|
|
|
# py-evm claims these tests are incorrect
|
|
|
|
# nimbus also agree
|
|
|
|
"RevertInCreateInInit.json",
|
|
|
|
"RevertInCreateInInitCreate2.json",
|
2019-11-19 06:12:13 +00:00
|
|
|
"InitCollision.json",
|
2018-11-28 19:02:21 +00:00
|
|
|
]
|
|
|
|
result = name in allowedFailingGeneralStateTests
|