Skip to content

Commit

Permalink
sysbench: test added, homepage link fixed
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#36991.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Feb 20, 2015
1 parent 8c163dc commit 7d7a2ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Formula/sysbench.rb
@@ -1,12 +1,12 @@
require "formula"

class Sysbench < Formula
homepage "http://sysbench.sourceforge.net/"
homepage "https://launchpad.net/sysbench"
url "http://ftp.de.debian.org/debian/pool/main/s/sysbench/sysbench_0.4.12.orig.tar.gz"
sha1 "3f346e8b29b738711546970b027bbb7359d4672a"
revision 1

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "openssl"
depends_on :mysql => :recommended
depends_on :postgresql => :optional

Expand All @@ -25,4 +25,8 @@ def install
system "./configure", *args
system "make", "install"
end

test do
system "#{bin}/sysbench", "--test=cpu", "--cpu-max-prime=1", "run"
end
end

0 comments on commit 7d7a2ec

Please sign in to comment.