aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-02-22 20:17:09 +0100
committerTim D. Smith2015-02-22 20:04:19 -0800
commit26b9464a7cee864217125102d5571a88309cc9bc (patch)
tree91236c324aa1098bf52c0f90844f67baf3b44947 /Library
parent536ca35f928de387655fe57dfd307a8be79da6c5 (diff)
downloadhomebrew-26b9464a7cee864217125102d5571a88309cc9bc.tar.bz2
bsdmake: test added
Closes #37078. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/bsdmake.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/bsdmake.rb b/Library/Formula/bsdmake.rb
index 76f7827db..b233ce8fd 100644
--- a/Library/Formula/bsdmake.rb
+++ b/Library/Formula/bsdmake.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class Bsdmake < Formula
homepage "http://opensource.apple.com/"
url "http://opensource.apple.com/tarballs/bsdmake/bsdmake-24.tar.gz"
@@ -65,4 +63,14 @@ class Bsdmake < Formula
man1.install "make.1" => "bsdmake.1"
(share/"mk/bsdmake").install Dir["mk/*"]
end
+
+ test do
+ (testpath/"Makefile").write <<-EOS.undent
+ foo:
+ \ttouch $@
+ EOS
+
+ system "#{bin}/bsdmake"
+ assert File.exist? "#{testpath}/foo"
+ end
end