aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2014-01-19 14:04:02 -0800
committerMisty De Meo2014-01-19 14:04:26 -0800
commitd230f95b77c9d8c2018b3e3e498f8340519aefe5 (patch)
treeb410b19cd1863403f3b799021c7b6fbd142d8a40 /Library/Formula
parentf551dd917c17088cb823858a357249d21d8826da (diff)
downloadhomebrew-d230f95b77c9d8c2018b3e3e498f8340519aefe5.tar.bz2
guile: add test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/guile.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/guile.rb b/Library/Formula/guile.rb
index 5c5ee09bb..0b474ead4 100644
--- a/Library/Formula/guile.rb
+++ b/Library/Formula/guile.rb
@@ -49,6 +49,18 @@ class Guile < Formula
# A really messed up workaround required on OS X --mkhl
lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }}
end
+
+ test do
+ hello = testpath/'hello.scm'
+ hello.write <<-EOS.undent
+ (display "Hello World")
+ (newline)
+ EOS
+
+ ENV['GUILE_AUTO_COMPILE'] = '0'
+
+ system bin/'guile', hello
+ end
end
__END__