test-framework-program-1.1: Test framework support for running simple test programs.

Safe HaskellSafe-Inferred

Test.Framework.Providers.Program

Synopsis

Documentation

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.