aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/unittest.rb
diff options
context:
space:
mode:
authorDane Jensen2009-09-08 01:38:38 -0700
committerMax Howell2009-09-16 14:49:06 +0100
commit65cf4e87d26e778ca8ed494f202c496c8211bba1 (patch)
treef4c535c0557eb7b02f077ee87538ee2b553244b2 /Library/Formula/unittest.rb
parentc29448986c6e09c1e3653e6c8e9ad0354f9cd8e6 (diff)
downloadhomebrew-65cf4e87d26e778ca8ed494f202c496c8211bba1.tar.bz2
Unittest formula
This is the web page for a C++ unit test framework. Its design goals are to be simple, to be idiomatic C++, and to follow the basic xUnit style to the extent that doing so is compatible with the earlier goals. Its main differences from other xUnit frameworks are that it uses constructors and destructors for setup/teardown and that it requires you to represent tests as classes, instead of methods.
Diffstat (limited to 'Library/Formula/unittest.rb')
-rw-r--r--Library/Formula/unittest.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/unittest.rb b/Library/Formula/unittest.rb
new file mode 100644
index 000000000..342b0cbb1
--- /dev/null
+++ b/Library/Formula/unittest.rb
@@ -0,0 +1,12 @@
+require 'brewkit'
+
+class Unittest <Formula
+ @url='http://unittest.red-bean.com/tar/unittest-0.50-62.tar.gz'
+ @homepage='http://unittest.red-bean.com/'
+ @md5='6eaa2823620c2e21fc745bd8da6a26b2'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+ end
+end