aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/curl.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb
index 7521d1367..e109a912e 100644
--- a/Library/Formula/curl.rb
+++ b/Library/Formula/curl.rb
@@ -64,4 +64,12 @@ class Curl < Formula
system "./configure", *args
system "make install"
end
+
+ test do
+ # Fetch the curl tarball and see that the checksum matches.
+ # This requires a network connection, but so does Homebrew in general.
+ filename = (testpath/"test.tar.gz")
+ system "curl", stable.url, "-o", filename
+ filename.verify_checksum stable.checksum
+ end
end