aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 17:17:24 +0800
committerMike McQuaid2015-01-03 18:42:17 +0000
commit938bedaa4632e8c559122c5ab112eba732c5cea9 (patch)
treebfdc05adb93a07ac394da28b3f9220dbd95a4a8c /Library
parent4b05a3c9d6ff0bb87cedab4c8f527a2535eed5b5 (diff)
downloadhomebrew-938bedaa4632e8c559122c5ab112eba732c5cea9.tar.bz2
p11-kit: add test
Closes #35501. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/p11-kit.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/p11-kit.rb b/Library/Formula/p11-kit.rb
index 19382992d..0e59ca39f 100644
--- a/Library/Formula/p11-kit.rb
+++ b/Library/Formula/p11-kit.rb
@@ -1,14 +1,12 @@
-require 'formula'
-
class P11Kit < Formula
- homepage 'http://p11-glue.freedesktop.org'
- url 'http://p11-glue.freedesktop.org/releases/p11-kit-0.18.4.tar.gz'
- sha256 'df5424ec39e17c2b3b98819bf772626e9b8c73871a8b82e54151f6297d8575fd'
+ homepage "http://p11-glue.freedesktop.org"
+ url "http://p11-glue.freedesktop.org/releases/p11-kit-0.18.4.tar.gz"
+ sha256 "df5424ec39e17c2b3b98819bf772626e9b8c73871a8b82e54151f6297d8575fd"
option :universal
- depends_on 'pkg-config' => :build
- depends_on 'libtasn1'
+ depends_on "pkg-config" => :build
+ depends_on "libtasn1"
def install
ENV.universal_binary if build.universal?
@@ -17,7 +15,11 @@ class P11Kit < Formula
"--prefix=#{prefix}",
"--disable-trust-module"
system "make"
- system "make check"
- system "make install"
+ system "make", "check"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/p11-kit", "list-modules"
end
end