diff options
| author | Charlie Sharpsteen | 2013-03-02 14:28:55 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2013-03-02 14:28:55 -0800 |
| commit | 9d1573a40afc35dbf93cfa726917363d3515545a (patch) | |
| tree | 90aeae0acec90caf8e3916f29589f5291ad1bc50 | |
| parent | dd50fcb3438518c95d5b1281fcd76353193c00b8 (diff) | |
| download | homebrew-9d1573a40afc35dbf93cfa726917363d3515545a.tar.bz2 | |
r: Add option for tests
`make check` accidentally got left in on the last upgrade. Adds a few minutes
to the build time, but useful enough to be left in as an option.
| -rw-r--r-- | Library/Formula/r.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/r.rb b/Library/Formula/r.rb index bdc3af22f..54f553e48 100644 --- a/Library/Formula/r.rb +++ b/Library/Formula/r.rb @@ -15,6 +15,7 @@ class R < Formula head 'https://svn.r-project.org/R/trunk' option 'with-valgrind', 'Compile an unoptimized build with support for the Valgrind debugger' + option 'test', 'Run tests before installing' depends_on 'readline' depends_on 'libtiff' @@ -41,7 +42,7 @@ class R < Formula system "./configure", *args system "make" ENV.j1 # Serialized installs, please - system "make check" + system "make check 2>&1 | tee make-check.log" if build.include? 'test' system "make install" # Link binaries and manpages from the Framework @@ -57,6 +58,8 @@ class R < Formula bash_dir = prefix + 'etc/bash_completion.d' bash_dir.mkpath RBashCompletion.new.brew { bash_dir.install 'R' } + + prefix.install 'make-check.log' if build.include? 'test' end def caveats; <<-EOS.undent |
