aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-01 23:54:26 +0800
committerMike McQuaid2015-01-01 16:47:47 +0000
commit2702f2cfa467d2bcd6cb6a2cf3279a42b6a06f46 (patch)
treef43c8ccb89b8f060848d4e6abbe8cea5496ab0fb /Library
parentfd80f3e7e594795e2c5f4b7cbe8681d171bdd1eb (diff)
downloadhomebrew-2702f2cfa467d2bcd6cb6a2cf3279a42b6a06f46.tar.bz2
blueutil: add test
Closes #35420. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/blueutil.rb18
1 files changed, 10 insertions, 8 deletions
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