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
6415ed07
Commit
6415ed07
authored
Jun 08, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require a first argument of test type
parent
e4f9ec88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
main.go
cmd/ethtest/main.go
+24
-4
No files found.
cmd/ethtest/main.go
View file @
6415ed07
...
...
@@ -225,9 +225,29 @@ func main() {
helper
.
Logger
.
SetLogLevel
(
5
)
vm
.
Debug
=
true
if
len
(
os
.
Args
)
>
1
{
os
.
Exit
(
RunVmTest
(
strings
.
NewReader
(
os
.
Args
[
1
])))
}
else
{
os
.
Exit
(
RunVmTest
(
os
.
Stdin
))
if
len
(
os
.
Args
)
<
2
{
glog
.
Exit
(
"Must specify test type"
)
}
test
:=
os
.
Args
[
1
]
var
code
int
switch
test
{
case
"vm"
,
"VMTests"
:
glog
.
Exit
(
"VMTests not yet implemented"
)
case
"state"
,
"StateTest"
:
if
len
(
os
.
Args
)
>
2
{
code
=
RunVmTest
(
strings
.
NewReader
(
os
.
Args
[
2
]))
}
else
{
code
=
RunVmTest
(
os
.
Stdin
)
}
case
"tx"
,
"TransactionTests"
:
glog
.
Exit
(
"TransactionTests not yet implemented"
)
case
"bc"
,
"BlockChainTest"
:
glog
.
Exit
(
"BlockChainTest not yet implemented"
)
default
:
glog
.
Exit
(
"Invalid test type specified"
)
}
os
.
Exit
(
code
)
}
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