nss: use test DSL

master
Jack Nagel 2013-02-01 23:12:47 -06:00
parent 112ff1e361
commit 01a3a42b6a
1 changed files with 4 additions and 6 deletions

View File

@ -55,13 +55,11 @@ class Nss < Formula
(lib+'pkgconfig/nss.pc').write pkg_file
end
def test
test do
# See: http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
mktemp do
File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") }
system "#{bin}/certutil", "-N", "-d", pwd, "-f", "passwd"
system "#{bin}/certutil", "-L", "-d", pwd
end
File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") }
system "#{bin}/certutil", "-N", "-d", pwd, "-f", "passwd"
system "#{bin}/certutil", "-L", "-d", pwd
end
def pkg_file; <<-EOF