good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
79ca6c7a
Unverified
Commit
79ca6c7a
authored
6 years ago
by
Felix Lange
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests: update slow test lists, skip on windows/386 (#17758)
parent
4d8c7248
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/block_test.go
+7
-3
7 additions, 3 deletions
tests/block_test.go
tests/init_test.go
+11
-6
11 additions, 6 deletions
tests/init_test.go
tests/state_test.go
+9
-1
9 additions, 1 deletion
tests/state_test.go
tests/vm_test.go
+1
-5
1 addition, 5 deletions
tests/vm_test.go
with
28 additions
and
15 deletions
tests/block_test.go
+
7
−
3
View file @
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
{
...
...
This diff is collapsed.
Click to expand it.
tests/init_test.go
+
11
−
6
View file @
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
kipshort
pat
=
append
(
tm
.
s
kipshort
pat
,
regexp
.
MustCompile
(
pattern
))
func
(
tm
*
testMatcher
)
s
low
(
pattern
string
)
{
tm
.
s
low
pat
=
append
(
tm
.
s
low
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
{
...
...
This diff is collapsed.
Click to expand it.
tests/state_test.go
+
9
−
1
View file @
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
...
...
This diff is collapsed.
Click to expand it.
tests/vm_test.go
+
1
−
5
View file @
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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment