Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c32d6fdf
Commit
c32d6fdf
authored
Aug 11, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1640 from obscuren/trace-flag-ethtest
cmd/ethtest: added trace flag for debugging
parents
2fcf7f12
67c8ccc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
main.go
cmd/ethtest/main.go
+7
-1
No files found.
cmd/ethtest/main.go
View file @
c32d6fdf
...
...
@@ -26,6 +26,7 @@ import (
"strings"
"github.com/codegangsta/cli"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/tests"
)
...
...
@@ -62,6 +63,10 @@ var (
Name
:
"skip"
,
Usage
:
"Tests names to skip"
,
}
TraceFlag
=
cli
.
BoolFlag
{
Name
:
"trace"
,
Usage
:
"Enable VM tracing"
,
}
)
func
runTestWithReader
(
test
string
,
r
io
.
Reader
)
error
{
...
...
@@ -173,7 +178,6 @@ func runSuite(test, file string) {
glog
.
Fatalln
(
err
)
}
}
}
}
}
...
...
@@ -184,6 +188,7 @@ func setupApp(c *cli.Context) {
continueOnError
=
c
.
GlobalBool
(
ContinueOnErrorFlag
.
Name
)
useStdIn
:=
c
.
GlobalBool
(
ReadStdInFlag
.
Name
)
skipTests
=
strings
.
Split
(
c
.
GlobalString
(
SkipTestsFlag
.
Name
),
" "
)
vm
.
Debug
=
c
.
GlobalBool
(
TraceFlag
.
Name
)
if
!
useStdIn
{
runSuite
(
flagTest
,
flagFile
)
...
...
@@ -211,6 +216,7 @@ func main() {
ContinueOnErrorFlag
,
ReadStdInFlag
,
SkipTestsFlag
,
TraceFlag
,
}
if
err
:=
app
.
Run
(
os
.
Args
);
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment