rdate: test added

Closes Homebrew/homebrew#37682.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-03-13 14:17:52 +01:00 committed by Mike McQuaid
parent be174a37ec
commit 2d042ae3f9

View file

@ -1,14 +1,17 @@
require 'formula'
class Rdate < Formula
homepage 'http://www.aelius.com/njh/rdate/'
url 'http://www.aelius.com/njh/rdate/rdate-1.5.tar.gz'
sha1 'd7212503907db741ab53c4dd13ed141702d1809b'
homepage "http://www.aelius.com/njh/rdate/"
url "http://www.aelius.com/njh/rdate/rdate-1.5.tar.gz"
sha256 "6e800053eaac2b21ff4486ec42f0aca7214941c7e5fceedd593fa0be99b9227d"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
system "make", "install"
end
test do
system "#{bin}/rdate", "-p", "-t", "2", "0.pool.ntp.org"
end
end