Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
79ca6c7a
G
go-ethereum
项目概览
whqwjb
/
go-ethereum
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ethereum
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
79ca6c7a
编写于
9月 28, 2018
作者:
F
Felix Lange
提交者:
GitHub
9月 28, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: update slow test lists, skip on windows/386 (#17758)
上级
4d8c7248
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
28 addition
and
15 deletion
+28
-15
tests/block_test.go
tests/block_test.go
+7
-3
tests/init_test.go
tests/init_test.go
+11
-6
tests/state_test.go
tests/state_test.go
+9
-1
tests/vm_test.go
tests/vm_test.go
+1
-5
未找到文件。
tests/block_test.go
浏览文件 @
79ca6c7a
...
...
@@ -32,9 +32,13 @@ func TestBlockchain(t *testing.T) {
bt
.
skipLoad
(
`^bcTotalDifficultyTest/(lotsOfLeafs|lotsOfBranches|sideChainWithMoreTransactions)`
)
// This test is broken
bt
.
fails
(
`blockhashNonConstArg_Constantinople`
,
"Broken test"
)
// Still failing tests
// bt.skipLoad(`^bcWalletTest.*_Byzantium$`)
// Slow tests
bt
.
slow
(
`^bcExploitTest/DelegateCallSpam.json`
)
bt
.
slow
(
`^bcExploitTest/ShanghaiLove.json`
)
bt
.
slow
(
`^bcExploitTest/SuicideIssue.json`
)
bt
.
slow
(
`^bcForkStressTest/`
)
bt
.
slow
(
`^bcGasPricerTest/RPC_API_Test.json`
)
bt
.
slow
(
`^bcWalletTest/`
)
bt
.
walk
(
t
,
blockTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
BlockTest
)
{
if
err
:=
bt
.
checkFailure
(
t
,
name
,
test
.
Run
());
err
!=
nil
{
...
...
tests/init_test.go
浏览文件 @
79ca6c7a
...
...
@@ -25,6 +25,7 @@ import (
"path/filepath"
"reflect"
"regexp"
"runtime"
"sort"
"strings"
"testing"
...
...
@@ -90,7 +91,7 @@ type testMatcher struct {
configpat
[]
testConfig
failpat
[]
testFailure
skiploadpat
[]
*
regexp
.
Regexp
s
kipshortpat
[]
*
regexp
.
Regexp
s
lowpat
[]
*
regexp
.
Regexp
whitelistpat
*
regexp
.
Regexp
}
...
...
@@ -105,8 +106,8 @@ type testFailure struct {
}
// skipShortMode skips tests matching when the -short flag is used.
func
(
tm
*
testMatcher
)
s
kipShortMode
(
pattern
string
)
{
tm
.
s
kipshortpat
=
append
(
tm
.
skipshort
pat
,
regexp
.
MustCompile
(
pattern
))
func
(
tm
*
testMatcher
)
s
low
(
pattern
string
)
{
tm
.
s
lowpat
=
append
(
tm
.
slow
pat
,
regexp
.
MustCompile
(
pattern
))
}
// skipLoad skips JSON loading of tests matching the pattern.
...
...
@@ -133,11 +134,15 @@ func (tm *testMatcher) config(pattern string, cfg params.ChainConfig) {
// findSkip matches name against test skip patterns.
func
(
tm
*
testMatcher
)
findSkip
(
name
string
)
(
reason
string
,
skipload
bool
)
{
if
testing
.
Short
()
{
for
_
,
re
:=
range
tm
.
skipshortpat
{
if
re
.
MatchString
(
name
)
{
isWin32
:=
runtime
.
GOARCH
==
"386"
&&
runtime
.
GOOS
==
"windows"
for
_
,
re
:=
range
tm
.
slowpat
{
if
re
.
MatchString
(
name
)
{
if
testing
.
Short
()
{
return
"skipped in -short mode"
,
false
}
if
isWin32
{
return
"skipped on 32bit windows"
,
false
}
}
}
for
_
,
re
:=
range
tm
.
skiploadpat
{
...
...
tests/state_test.go
浏览文件 @
79ca6c7a
...
...
@@ -30,7 +30,15 @@ func TestState(t *testing.T) {
st
:=
new
(
testMatcher
)
// Long tests:
st
.
skipShortMode
(
`^stQuadraticComplexityTest/`
)
st
.
slow
(
`^stAttackTest/ContractCreationSpam`
)
st
.
slow
(
`^stBadOpcode/badOpcodes`
)
st
.
slow
(
`^stPreCompiledContracts/modexp`
)
st
.
slow
(
`^stQuadraticComplexityTest/`
)
st
.
slow
(
`^stStaticCall/static_Call50000`
)
st
.
slow
(
`^stStaticCall/static_Return50000`
)
st
.
slow
(
`^stStaticCall/static_Call1MB`
)
st
.
slow
(
`^stSystemOperationsTest/CallRecursiveBomb`
)
st
.
slow
(
`^stTransactionTest/Opcodes_TransactionInit`
)
// Broken tests:
st
.
skipLoad
(
`^stTransactionTest/OverflowGasRequire\.json`
)
// gasLimit > 256 bits
st
.
skipLoad
(
`^stTransactionTest/zeroSigTransa[^/]*\.json`
)
// EIP-86 is not supported yet
...
...
tests/vm_test.go
浏览文件 @
79ca6c7a
...
...
@@ -25,13 +25,9 @@ import (
func
TestVM
(
t
*
testing
.
T
)
{
t
.
Parallel
()
vmt
:=
new
(
testMatcher
)
vmt
.
slow
(
"^vmPerformance"
)
vmt
.
fails
(
"^vmSystemOperationsTest.json/createNameRegistrator$"
,
"fails without parallel execution"
)
vmt
.
skipLoad
(
`^vmInputLimits(Light)?.json`
)
// log format broken
vmt
.
skipShortMode
(
"^vmPerformanceTest.json"
)
vmt
.
skipShortMode
(
"^vmInputLimits(Light)?.json"
)
vmt
.
walk
(
t
,
vmTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
VMTest
)
{
withTrace
(
t
,
test
.
json
.
Exec
.
GasLimit
,
func
(
vmconfig
vm
.
Config
)
error
{
return
vmt
.
checkFailure
(
t
,
name
,
test
.
Run
(
vmconfig
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录