From afd95412a77d53ba21b9fcb7b6628e07f83d1a41 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 13 Mar 2015 14:00:49 +0100 Subject: [PATCH] jnettop: basic test added Closes Homebrew/homebrew#37679. Signed-off-by: Mike McQuaid --- Formula/jnettop.rb | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Formula/jnettop.rb b/Formula/jnettop.rb index 2ac2eb1ce1..070653473b 100644 --- a/Formula/jnettop.rb +++ b/Formula/jnettop.rb @@ -1,17 +1,20 @@ -require 'formula' - class Jnettop < Formula - homepage 'http://jnettop.kubs.info/' - url 'http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz' - sha1 '59f4c28db6f8b1c58050d72aaa4b3b6d5a4a75e0' + homepage "http://jnettop.kubs.info/" + url "http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz" + sha256 "e987a1a9325595c8a0543ab61cf3b6d781b4faf72dd0e0e0c70b2cc2ceb5a5a0" - depends_on 'pkg-config' => :build - depends_on 'glib' + depends_on "pkg-config" => :build + depends_on "glib" def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}", "--man=#{man}" - system "make install" + system "make", "install" + end + + test do + system "#{bin}/jnettop", "-h" end end