diff options
| author | Xu Cheng | 2015-01-02 16:12:57 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-02 09:55:15 +0000 |
| commit | 6d5609bd36700fdf0bb6d0bdda401192d9c847cf (patch) | |
| tree | 8ffd5eb9861f1a61d1c2b621c6e014f7da7426c2 /Library/Formula/xml-coreutils.rb | |
| parent | 3f4c455072e204a0689a60802399fa947c6b6c63 (diff) | |
| download | homebrew-6d5609bd36700fdf0bb6d0bdda401192d9c847cf.tar.bz2 | |
xml-coreutils: add test
Closes #35454.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/xml-coreutils.rb')
| -rw-r--r-- | Library/Formula/xml-coreutils.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Library/Formula/xml-coreutils.rb b/Library/Formula/xml-coreutils.rb index faa38203c..bc7652667 100644 --- a/Library/Formula/xml-coreutils.rb +++ b/Library/Formula/xml-coreutils.rb @@ -1,15 +1,20 @@ -require 'formula' - class XmlCoreutils < Formula - homepage 'http://www.lbreyer.com/xml-coreutils.html' - url 'http://www.lbreyer.com/gpl/xml-coreutils-0.8.1.tar.gz' - sha1 'fd73b2a087ea1c630571070b1ab4ea3b40138a46' + homepage "http://www.lbreyer.com/xml-coreutils.html" + url "http://www.lbreyer.com/gpl/xml-coreutils-0.8.1.tar.gz" + sha1 "fd73b2a087ea1c630571070b1ab4ea3b40138a46" - depends_on 's-lang' + depends_on "s-lang" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + system "make", "install" + end + + test do + (testpath/"test.xml").write <<-EOS.undent + <hello>world!</hello> + EOS + assert_match /0\s+1\s+1/, shell_output("#{bin}/xml-wc test.xml") end end |
