diff options
| author | Baptiste Fontaine | 2015-03-16 00:55:55 +0100 |
|---|---|---|
| committer | Xu Cheng | 2015-03-16 16:12:30 +0800 |
| commit | ea718a264243f6ff81b5dc29aa338768e710f762 (patch) | |
| tree | d8b727925424e932a2c70f31c82cb845a3d1dec2 /Library | |
| parent | f4f15ceca1d2f84796367cf83a0b143fafc97b97 (diff) | |
| download | homebrew-ea718a264243f6ff81b5dc29aa338768e710f762.tar.bz2 | |
autobench: test added
Closes #37752.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/autobench.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/autobench.rb b/Library/Formula/autobench.rb index 5f6afcc0b..f60daf41d 100644 --- a/Library/Formula/autobench.rb +++ b/Library/Formula/autobench.rb @@ -1,11 +1,9 @@ -require 'formula' - class Autobench < Formula - homepage 'http://www.xenoclast.org/autobench/' - url 'http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz' - sha1 '8c342b50ce36c13d46dc995bc5f08acdead21553' + homepage "http://www.xenoclast.org/autobench/" + url "http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz" + sha256 "d8b4d30aaaf652df37dff18ee819d8f42751bc40272d288ee2a5d847eaf0423b" - depends_on 'httperf' + depends_on "httperf" def install system "make", "PREFIX=#{prefix}", @@ -14,4 +12,10 @@ class Autobench < Formula "CFLAGS=#{ENV.cflags}", "install" end + + test do + system "#{bin}/crfile", "-f", "#{testpath}/test", "-s", "42" + assert File.exist? "test" + assert_equal 42, File.size("test") + end end |
