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

interface-test

parent 06463a80
......@@ -119,6 +119,7 @@ func main() {
Version: build.UserVersion(),
Commands: []*cli.Command{
proveCmd,
testCmd,
sealBenchCmd,
},
}
......@@ -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{
Name: "sealing",
Usage: "Benchmark seal and winning post and window post",
......@@ -467,11 +480,6 @@ var sealBenchCmd = &cli.Command{
}
}
// err = seal.TestSealAndUnseal()
// if err != nil {
// return err
// }
if c.Bool("json-out") {
data, err := json.MarshalIndent(bo, "", " ")
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