mosquitto 0.14.4

Includes a test script that checks if `mosquitto -h` quits with code 3.

Closes Homebrew/homebrew#9670.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Adam Rudd 2012-01-19 13:47:09 +10:00 committed by Jack Nagel
parent ca72102139
commit 03b6b8ec59

View file

@ -1,9 +1,9 @@
require 'formula'
class Mosquitto < Formula
url 'http://mosquitto.org/files/source/mosquitto-0.12.tar.gz'
url 'http://mosquitto.org/files/source/mosquitto-0.14.4.tar.gz'
homepage 'http://mosquitto.org/'
md5 'e21ecb18dc8f9c3103fab95bbf8cffc7'
md5 '88750338c2096671c01cf7e461d5c06d'
depends_on 'cmake' => :build
@ -11,4 +11,8 @@ class Mosquitto < Formula
system "cmake . #{std_cmake_parameters}"
system "make install"
end
def test
system "mosquitto -h > /dev/null ; [ $? -eq 3 ]"
end
end