html-xml-utils: add test
Closes Homebrew/homebrew#35450. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
51163ccd05
commit
e17a4fbf5d
1 changed files with 9 additions and 7 deletions
|
@ -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 "你好", pipe_output("#{bin}/xml2asc", "你好")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue