Commit e45a8a7b authored by 董子豪's avatar 董子豪

interface-test

parent 06463a80
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment