From c5a3b836ebcb593d3b9a3c2c4d83305ee10a839e Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 2 Jan 2015 13:36:19 +0800 Subject: patchutils: add test Closes #35445. --- Library/Formula/patchutils.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/patchutils.rb b/Library/Formula/patchutils.rb index 1137111de..e58e777f5 100644 --- a/Library/Formula/patchutils.rb +++ b/Library/Formula/patchutils.rb @@ -14,4 +14,9 @@ class Patchutils < Formula system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" end + + test do + assert_match /a\/libexec\/NOOP/, + shell_output("#{bin}/lsdiff #{HOMEBREW_LIBRARY.join("Homebrew", "test", "patches", "noop-a.diff")}") + end end -- cgit v1.2.3