Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- bashPath :: FilePath
- execCli :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m String
- execCli_ :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m ()
- execCli' :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => ExecConfig -> [String] -> m String
- execCliAny :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => ExecConfig -> [String] -> m (ExitCode, String, String)
- execCreateScriptContext :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m String
- execCreateScriptContext' :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => ExecConfig -> [String] -> m String
- initiateProcess :: CreateProcess -> ExceptT ProcessError (ResourceT IO) (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle, ReleaseKey)
- procCli :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m CreateProcess
- procNode :: [String] -> ExceptT ExecutableError IO CreateProcess
- procSubmitApi :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m CreateProcess
- procChairman :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m CreateProcess
- mkExecConfig :: MonadTest m => MonadIO m => FilePath -> Sprocket -> Int -> m ExecConfig
- data ProcessError
- data ExecutableError
Documentation
Path to the bash executable. This is used on Windows so that the caller can supply a Windows path to the bash executable because there is no reliable way to invoke bash without the full Windows path from Haskell.
execCli :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m String Source #
Run cardano-cli, returning the stdout
execCli_ :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m () Source #
Run cardano-cli, discarding return value
execCli' :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => ExecConfig -> [String] -> m String Source #
Run cardano-cli, returning the stdout
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) | |
=> ExecConfig | |
-> [String] | |
-> m (ExitCode, String, String) | The exit code of the call, stdoud, stderr. |
Run cardano-cli, returning the exit code, the stdout, and the stderr. Contrary to other functions from this module, this function doesn't fail the test if the call fails. So if you want to test something negative, this is the function to use.
execCreateScriptContext :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => [String] -> m String Source #
Run create-script-context, returning the stdout.
execCreateScriptContext' :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => ExecConfig -> [String] -> m String Source #
Run create-script-context, returning the stdout.
initiateProcess :: CreateProcess -> ExceptT ProcessError (ResourceT IO) (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle, ReleaseKey) Source #
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) | |
=> [String] | Arguments to the CLI command |
-> m CreateProcess | Captured stdout |
Create a CreateProcess
describing how to start the cardano-cli process
and an argument list.
:: [String] | Arguments to the CLI command |
-> ExceptT ExecutableError IO CreateProcess | Captured stdout |
Create a CreateProcess
describing how to start the cardano-node process
and an argument list.
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) | |
=> [String] | Arguments to the CLI command |
-> m CreateProcess | Captured stdout |
Create a CreateProcess
describing how to start the cardano-submit-api process
and an argument list.
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) | |
=> [String] | Arguments to the CLI command |
-> m CreateProcess | Captured stdout |
Create a CreateProcess
describing how to start the cardano-node-chairman process
and an argument list.
data ProcessError Source #
Instances
Show ProcessError Source # | |
Defined in Testnet.Process.Run |