tor: better test

This commit is contained in:
Xu Cheng 2015-10-08 19:40:20 +08:00
parent 8c5be90e41
commit 1bd006e9cc

View file

@ -52,7 +52,10 @@ class Tor < Formula
end
test do
system bin/"tor", "--version"
pipe_output("script -q /dev/null #{bin}/tor-gencert --create-identity-key", "passwd\npasswd\n")
assert (testpath/"authority_certificate").exist?
assert (testpath/"authority_signing_key").exist?
assert (testpath/"authority_identity_key").exist?
end
def plist; <<-EOS.undent