diff options
| author | Ted Pennings | 2014-03-05 23:39:25 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-06 21:09:00 -0800 |
| commit | b2d129fb94824da8f6ee1b562a13a8ef4f5f535e (patch) | |
| tree | 6d1ecbc067823816a3eeab842b68154819c854d6 /Library | |
| parent | 7bb1d40168de079e0b3f03ffc4977cab7392b40a (diff) | |
| download | homebrew-b2d129fb94824da8f6ee1b562a13a8ef4f5f535e.tar.bz2 | |
ghc: add a test
Closes #27248.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ghc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb index 27a67250b..6dc282c82 100644 --- a/Library/Formula/ghc.rb +++ b/Library/Formula/ghc.rb @@ -129,6 +129,14 @@ class Ghc < Formula This brew is for GHC only; you might also be interested in haskell-platform. EOS end + + test do + hello = (testpath/"hello.hs") + hello.write('main = putStrLn "Hello Homebrew"') + output = `echo "main" | '#{bin}/ghci' #{hello}` + assert $?.success? + assert_match /Hello Homebrew/i, output + end end __END__ |
