aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-04-26 10:18:35 -0700
committerAdam Vandenberg2014-04-26 12:08:23 -0700
commit540769f5f77edcfcf967e62504c64841cc2e96dd (patch)
tree7ab87ff368f35d804faa23c9959894feaa97f997 /Library/Formula
parent23a2f4866c4b75586fb919ddf00d1003362331ca (diff)
downloadhomebrew-540769f5f77edcfcf967e62504c64841cc2e96dd.tar.bz2
rakudo-star: add test
Closes #28741. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rakudo-star.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/rakudo-star.rb b/Library/Formula/rakudo-star.rb
index 22ae592c3..4e5bfd4de 100644
--- a/Library/Formula/rakudo-star.rb
+++ b/Library/Formula/rakudo-star.rb
@@ -36,4 +36,10 @@ class RakudoStar < Formula
# move the man pages out of the top level into share.
mv "#{prefix}/man", share
end
+
+ test do
+ out = `#{bin}/perl6 -e 'loop (my $i = 0; $i < 10; $i++) { print $i }'`
+ assert_equal "0123456789", out
+ assert_equal 0, $?.exitstatus
+ end
end