diff options
| author | Baptiste Fontaine | 2015-03-25 18:55:50 +0100 |
|---|---|---|
| committer | Xu Cheng | 2015-03-27 16:06:12 +0800 |
| commit | afa80ba112dc6d0798934c19372960c9537d6784 (patch) | |
| tree | d8c71f592fdbf40948ffd71c3208c170712a7a34 | |
| parent | e2786e3713984946b14f06c96dee1d046df49d17 (diff) | |
| download | homebrew-afa80ba112dc6d0798934c19372960c9537d6784.tar.bz2 | |
btparse: test added
Closes #38070.
Signed-off-by: Xu Cheng <xucheng@me.com>
| -rw-r--r-- | Library/Formula/btparse.rb | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/Library/Formula/btparse.rb b/Library/Formula/btparse.rb index 5c30ae127..a2757c08b 100644 --- a/Library/Formula/btparse.rb +++ b/Library/Formula/btparse.rb @@ -1,15 +1,28 @@ -require 'formula' - class Btparse < Formula - homepage 'http://www.gerg.ca/software/btOOL/' - url 'http://www.gerg.ca/software/btOOL/btparse-0.34.tar.gz' - sha1 'cfc2a5364b99121843dae4fd4ce1b01326a7a0bb' + homepage "http://www.gerg.ca/software/btOOL/" + url "http://www.gerg.ca/software/btOOL/btparse-0.34.tar.gz" + sha256 "e8e2b6ae5de85d1c6f0dc52e8210aec51faebeee6a6ddc9bd975b110cec62698" def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}" - system "make install" + system "make", "install" + end + + test do + (testpath/"test.bib").write <<-EOS.undent + @article{mxcl09, + title={{H}omebrew}, + author={{H}owell, {M}ax}, + journal={GitHub}, + volume={1}, + page={42}, + year={2009} + } + EOS + + system "#{bin}/bibparse", "-check", "test.bib" end end |
