ghc: add a test
Closes Homebrew/homebrew#27248. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
60a7aa0aa6
commit
e333888c43
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue