html-xml-utils: add test

Closes Homebrew/homebrew#35450.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-01-02 14:36:47 +08:00 committed by Mike McQuaid
parent 51163ccd05
commit e17a4fbf5d

View file

@ -1,15 +1,17 @@
require 'formula'
class HtmlXmlUtils < Formula
homepage 'http://www.w3.org/Tools/HTML-XML-utils/'
url 'http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-6.7.tar.gz'
sha1 'f67fc705802ef0b10b9bf84c5b2fa4253b260acd'
homepage "http://www.w3.org/Tools/HTML-XML-utils/"
url "http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-6.7.tar.gz"
sha1 "f67fc705802ef0b10b9bf84c5b2fa4253b260acd"
def install
ENV.append 'CFLAGS', '-std=gnu89'
ENV.append "CFLAGS", "-std=gnu89"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
ENV.j1 # install is not thread-safe
system "make install"
system "make", "install"
end
test do
assert_equal "&#20320;&#22909;", pipe_output("#{bin}/xml2asc", "你好")
end
end