Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface-test
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
董子豪
interface-test
Commits
e45a8a7b
Commit
e45a8a7b
authored
Aug 09, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface-test
parent
06463a80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
main.go
cmd/lotus-bench/main.go
+13
-5
No files found.
cmd/lotus-bench/main.go
View file @
e45a8a7b
...
@@ -119,6 +119,7 @@ func main() {
...
@@ -119,6 +119,7 @@ func main() {
Version
:
build
.
UserVersion
(),
Version
:
build
.
UserVersion
(),
Commands
:
[]
*
cli
.
Command
{
Commands
:
[]
*
cli
.
Command
{
proveCmd
,
proveCmd
,
testCmd
,
sealBenchCmd
,
sealBenchCmd
,
},
},
}
}
...
@@ -129,6 +130,18 @@ func main() {
...
@@ -129,6 +130,18 @@ func main() {
}
}
}
}
var
testCmd
=
&
cli
.
Command
{
Name
:
"interface-test"
,
Usage
:
"Test interface"
,
Action
:
func
(
c
*
cli
.
Context
)
error
{
err
:=
TestSealAndUnseal
()
if
err
!=
nil
{
return
err
}
return
nil
}
}
var
sealBenchCmd
=
&
cli
.
Command
{
var
sealBenchCmd
=
&
cli
.
Command
{
Name
:
"sealing"
,
Name
:
"sealing"
,
Usage
:
"Benchmark seal and winning post and window post"
,
Usage
:
"Benchmark seal and winning post and window post"
,
...
@@ -467,11 +480,6 @@ var sealBenchCmd = &cli.Command{
...
@@ -467,11 +480,6 @@ var sealBenchCmd = &cli.Command{
}
}
}
}
// err = seal.TestSealAndUnseal()
// if err != nil {
// return err
// }
if
c
.
Bool
(
"json-out"
)
{
if
c
.
Bool
(
"json-out"
)
{
data
,
err
:=
json
.
MarshalIndent
(
bo
,
""
,
" "
)
data
,
err
:=
json
.
MarshalIndent
(
bo
,
""
,
" "
)
if
err
!=
nil
{
if
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