cardano-testnet-8.8.0: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Testnet.Process.Run

Synopsis

Documentation

bashPath :: FilePath Source #

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

execCliAny Source #

Arguments

:: (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.

procCli Source #

Arguments

:: (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.

procNode Source #

Arguments

:: [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.

procSubmitApi Source #

Arguments

:: (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.

procChairman Source #

Arguments

:: (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.

mkExecConfig Source #

Arguments

:: MonadTest m 
=> MonadIO m 
=> FilePath 
-> Sprocket 
-> Int

Network id

-> m ExecConfig