test-framework-program-1.0: Test framework support for running simple test programs.
Test.Framework.Providers.Program
Synopsis
type Checker = Maybe (String -> Bool)Source
A shorthand for a possible function checking an output stream.
testProgramRuns :: String -> FilePath -> [String] -> TestSource
Test that a given program runs correctly with the given arguments. 'Runs correctly' is defined as running and exiting with a successful (0) error code.
testProgramOutput :: String -> FilePath -> [String] -> Checker -> Checker -> TestSource
Test that a given program runs correctly (exits successfully), and that its stdout / stderr are acceptable.