Documentation ¶
Index ¶
- Constants
- func CreateDirIfNeeded(dir string) error
- func ExecuteOne(exp Experiment, previewOnError bool) int
- func ExecuteTimeout(name, cmdString, cmdFile, stdoutFile, stderrFile, subprocessType string, ...)
- func IsBatsimOrBatschedRunning() (bool, error)
- func KillProcess(pid int)
- func ParseRobinOutput(output string) ([]interface{}, error)
- func PortFromBatSock(socket string) (port uint16, err error)
- func PrepareDirs(exp Experiment) error
- func PreviewFile(filename string, maxLines int64) (preview string, err error)
- func ToYaml(exp Experiment) (yam string, err error)
- func Version() string
- func WasBatsimSuccessful(robinJsonLines []interface{}) (successful, killed bool)
- func WasContextClean(robinJsonLines []interface{}) bool
- func WasSchedSuccessful(robinJsonLines []interface{}) (successful, present, killed bool)
- type BatsimArgs
- type CmdFinishedMsg
- type Experiment
- type RobinResult
Constants ¶
View Source
const ( SUCCESS int = iota TIMEOUT FAILURE )
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNeeded ¶
func ExecuteOne ¶
func ExecuteOne(exp Experiment, previewOnError bool) int
Execute one Batsim simulation
func ExecuteTimeout ¶ added in v0.3.0
func ExecuteTimeout(name, cmdString, cmdFile, stdoutFile, stderrFile, subprocessType string, cmd *exec.Cmd, timeout float64, onstart chan CmdFinishedMsg, onexit chan CmdFinishedMsg, previewOnError bool)
Execute a command, writing status result on a channel
func IsBatsimOrBatschedRunning ¶ added in v0.2.0
func KillProcess ¶ added in v0.2.0
func KillProcess(pid int)
func ParseRobinOutput ¶ added in v0.2.0
func PortFromBatSock ¶
func PrepareDirs ¶
func PrepareDirs(exp Experiment) error
func PreviewFile ¶ added in v0.2.0
func ToYaml ¶
func ToYaml(exp Experiment) (yam string, err error)
func WasBatsimSuccessful ¶ added in v0.2.0
func WasBatsimSuccessful(robinJsonLines []interface{}) (successful, killed bool)
func WasContextClean ¶ added in v0.2.0
func WasContextClean(robinJsonLines []interface{}) bool
func WasSchedSuccessful ¶ added in v0.2.0
func WasSchedSuccessful(robinJsonLines []interface{}) (successful, present, killed bool)
Types ¶
type BatsimArgs ¶
type BatsimArgs struct { Socket string ExportPrefix string BatexecMode bool RedisEnabled bool RedisHostname string RedisPort int RedisPrefix string }
func ParseBatsimCommand ¶
func ParseBatsimCommand(batcmd string) (batargs BatsimArgs, err error)
type CmdFinishedMsg ¶ added in v0.3.0
type Experiment ¶
type Experiment struct { Batcmd string `json:"batcmd"` OutputDir string `json:"output-dir"` Schedcmd string `json:"schedcmd"` SimulationTimeout float64 `json:"simulation-timeout"` ReadyTimeout float64 `json:"ready-timeout"` SuccessTimeout float64 `json:"success-timeout"` FailureTimeout float64 `json:"failure-timeout"` }
Stores info on one Batsim simulation instance
func FromYaml ¶
func FromYaml(str string) (exp Experiment, convertErr error)
type RobinResult ¶ added in v0.2.0
func RunRobin ¶ added in v0.2.0
func RunRobin(descriptionFile, coverFile string, testTimeout float64) RobinResult
Click to show internal directories.
Click to hide internal directories.