aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/patchutils.rb
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 13:36:19 +0800
committerMike McQuaid2015-01-02 09:51:12 +0000
commitc5a3b836ebcb593d3b9a3c2c4d83305ee10a839e (patch)
tree928afc4556bff69dc57e63a808b787b5107077d8 /Library/Formula/patchutils.rb
parentd8dd9da7966abc5edf1f9f6612ecfd7c6a0d0ffd (diff)
downloadhomebrew-c5a3b836ebcb593d3b9a3c2c4d83305ee10a839e.tar.bz2
patchutils: add test
Closes #35445.
Diffstat (limited to 'Library/Formula/patchutils.rb')
-rw-r--r--Library/Formula/patchutils.rb5
1 files changed, 5 insertions, 0 deletions
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