-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Use tasty framework to test whether a program executes correctly
--   
--   This package provides a function that extends <a>tasty</a> testing
--   framework with capability to test whether an external program runs
--   successfully. This package is inspired by
--   <a>test-framework-program</a> package by Adam Wick. tasty-program
--   provides basic functionality of running a program with specified set
--   of command line parameters, and optionally a working directory, and
--   checking the exit code. Program's output and error streams are
--   ignored.
@package tasty-program
@version 1.0.5


-- | This module provides a function that tests whether a program can be
--   run successfully. For example if you have 'foo.hs' source file:
--   
--   <pre>
--   module Foo where
--   
--   foo :: Int
--   foo = 5
--   </pre>
--   
--   you can test whether GHC can compile it:
--   
--   <pre>
--   module Main (
--     main
--    ) where
--   
--   import Test.Tasty
--   import Test.Tasty.Program
--   
--   main :: IO ()
--   main = defaultMain $ testGroup "Compilation with GHC" $ [
--       testProgram "Foo" "ghc" ["-fforce-recomp", "foo.hs"] Nothing
--     ]
--   </pre>
--   
--   Program's output and error streams are ignored.
module Test.Tasty.Program

-- | Create test that runs a program with given options. Test succeeds if
--   program terminates successfully.
testProgram :: TestName -> String -> [String] -> Maybe FilePath -> TestTree
data CatchStderr
instance GHC.Show.Show Test.Tasty.Program.CatchStderr
instance Test.Tasty.Core.IsTest Test.Tasty.Program.TestProgram
instance Test.Tasty.Options.IsOption Test.Tasty.Program.CatchStderr
