mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-14 17:04:09 +00:00
f0762b1814
* refactor baseline test out of private repo * rm references to attackers * fix default plan name & add widget to override * add configs for local runners * update runner notebook intro text * fix build tags * increase setup time in saved configs
25 lines
420 B
Go
25 lines
420 B
Go
package main
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
|
|
"github.com/testground/sdk-go/runtime"
|
|
)
|
|
|
|
func main() {
|
|
runtime.Invoke(run)
|
|
}
|
|
|
|
// Pick a different example function to run
|
|
// depending on the name of the test case.
|
|
func run(runenv *runtime.RunEnv) error {
|
|
switch c := runenv.TestCase; c {
|
|
case "evaluate":
|
|
return RunSimulation(runenv)
|
|
default:
|
|
msg := fmt.Sprintf("Unknown Testcase %s", c)
|
|
return errors.New(msg)
|
|
}
|
|
}
|