aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-13 14:17:52 +0100
committerMike McQuaid2015-03-13 14:04:45 +0000
commit952f2cf4aa3401f77bac90a02c6f892feacc1355 (patch)
tree6951aa99870c7d418b4f3175db424947853ee6e6 /Library
parente5f29e55bffe41961be7f9018d995ee724471ef3 (diff)
downloadhomebrew-952f2cf4aa3401f77bac90a02c6f892feacc1355.tar.bz2
rdate: test added
Closes #37682. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rdate.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/rdate.rb b/Library/Formula/rdate.rb
index fff7b938b..80e32c002 100644
--- a/Library/Formula/rdate.rb
+++ b/Library/Formula/rdate.rb
@@ -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