diff options
| author | Dominyk Tiller | 2014-12-06 17:53:36 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-07 17:37:17 +0000 |
| commit | 75d1c094326e0d86ce8d315a483b4fbe8000beb5 (patch) | |
| tree | 79f638e1b10731b3cd5db02346e45503adae9edc /Library | |
| parent | 483e94d6724c649edcac889877c4d200c0c3bb83 (diff) | |
| download | homebrew-75d1c094326e0d86ce8d315a483b4fbe8000beb5.tar.bz2 | |
openssl: check config file exists.
Closes #34735.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/openssl.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb index c565b3c8b..da80ea4cf 100644 --- a/Library/Formula/openssl.rb +++ b/Library/Formula/openssl.rb @@ -121,6 +121,11 @@ class Openssl < Formula end test do + # Make sure the necessary .cnf file exists, otherwise OpenSSL gets moody. + assert (HOMEBREW_PREFIX/"etc/openssl/openssl.cnf").exist?, + "OpenSSL requires the .cnf file for some functionality" + + # Check OpenSSL itself functions as expected. (testpath/"testfile.txt").write("This is a test file") expected_checksum = "91b7b0b1e27bfbf7bc646946f35fa972c47c2d32" system "#{bin}/openssl", "dgst", "-sha1", "-out", "checksum.txt", "testfile.txt" |
