aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-08-25 00:52:12 +0100
committerMax Howell2011-08-25 00:53:37 +0100
commit46c38bf6dd8bd71e6c32d1d2a08fd533ee08eca5 (patch)
tree5f5c544756bb49c8e67660b8e66d4d44d0de43fb /Library
parent0d28e5baa6e21256f8cf9139268ffd38c41d03c3 (diff)
downloadhomebrew-46c38bf6dd8bd71e6c32d1d2a08fd533ee08eca5.tar.bz2
Force contributors to define a test by adding it to the create template
A little cheeky but it should help us to maintain higher quality.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/create.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index dc39fc381..c7fe22fc7 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -122,6 +122,11 @@ class FormulaCreator
<% end %>
system "make install"
end
+
+ def test
+ # this will fail we won't accept that, make it test the program works!
+ system "/usr/bin/false"
+ end
end
EOS
end