From c5b3f10bb2d2d6e00f77c5a6c41a312c7ed5f3cc Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sat, 11 Apr 2015 12:14:18 +0200 Subject: sersniff: basic test added Closes #38546. Signed-off-by: Xu Cheng --- Library/Formula/sersniff.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/sersniff.rb b/Library/Formula/sersniff.rb index a2e812b0e..73e982b61 100644 --- a/Library/Formula/sersniff.rb +++ b/Library/Formula/sersniff.rb @@ -1,15 +1,18 @@ -require 'formula' - class Sersniff < Formula - homepage 'http://www.earth.li/projectpurple/progs/sersniff.html' - url 'http://www.earth.li/projectpurple/files/sersniff-0.0.5.tar.gz' - sha1 'f320171e38ce8877646be65664328071254ed3ce' + homepage "http://www.earth.li/projectpurple/progs/sersniff.html" + url "http://www.earth.li/projectpurple/files/sersniff-0.0.5.tar.gz" + sha256 "8aa93f3b81030bcc6ff3935a48c1fd58baab8f964b1d5e24f0aaecbd78347209" - head 'git://the.earth.li/sersniff' + head "git://the.earth.li/sersniff" def install system "make" bin.install "sersniff" man8.install "sersniff.8" end + + test do + assert_match(/sersniff v#{version}/, + shell_output("#{bin}/sersniff -h 2>&1", 1)) + end end -- cgit v1.2.3