From 2702f2cfa467d2bcd6cb6a2cf3279a42b6a06f46 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 1 Jan 2015 23:54:26 +0800 Subject: blueutil: add test Closes #35420. Signed-off-by: Mike McQuaid --- Library/Formula/blueutil.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/blueutil.rb b/Library/Formula/blueutil.rb index c6a184625..60e9bd1c9 100644 --- a/Library/Formula/blueutil.rb +++ b/Library/Formula/blueutil.rb @@ -1,11 +1,9 @@ -require 'formula' - class Blueutil < Formula - homepage 'https://github.com/toy/blueutil' - url 'https://github.com/toy/blueutil/archive/v1.0.0.tar.gz' - sha1 'b1cce64f7fa87eb0cfa32ef8e1dfc1aa06dbbd98' + homepage "https://github.com/toy/blueutil" + url "https://github.com/toy/blueutil/archive/v1.0.0.tar.gz" + sha1 "b1cce64f7fa87eb0cfa32ef8e1dfc1aa06dbbd98" - head 'https://github.com/toy/blueutil.git' + head "https://github.com/toy/blueutil.git" bottle do cellar :any @@ -18,7 +16,11 @@ class Blueutil < Formula def install # Set to build with SDK=macosx10.6, but it doesn't actually need 10.6 - xcodebuild 'SDKROOT=', 'SYMROOT=build' - bin.install 'build/Release/blueutil' + xcodebuild "SDKROOT=", "SYMROOT=build" + bin.install "build/Release/blueutil" + end + + test do + system "#{bin}/blueutil" end end -- cgit v1.2.3