aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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