diff options
| author | Misty De Meo | 2014-01-19 14:04:02 -0800 |
|---|---|---|
| committer | Misty De Meo | 2014-01-19 14:04:26 -0800 |
| commit | d230f95b77c9d8c2018b3e3e498f8340519aefe5 (patch) | |
| tree | b410b19cd1863403f3b799021c7b6fbd142d8a40 /Library/Formula | |
| parent | f551dd917c17088cb823858a357249d21d8826da (diff) | |
| download | homebrew-d230f95b77c9d8c2018b3e3e498f8340519aefe5.tar.bz2 | |
guile: add test
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/guile.rb | 12 |
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__ |
