diff options
| author | Mohak Shah | 2015-04-12 23:56:16 +0530 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-12 21:43:49 -0700 |
| commit | 24ebf70a1dcd085598a67d7d398ffba649fa45b0 (patch) | |
| tree | 5d1a54b46bdc0c479afdd328c16ca5378ee865dd /Library | |
| parent | 1e76ec2c5c452c81d04de97b8914f3bfa164a019 (diff) | |
| download | homebrew-24ebf70a1dcd085598a67d7d398ffba649fa45b0.tar.bz2 | |
ddrescue: Added a test block, removed `require "formula"` and updated to SHA256
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ddrescue.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/ddrescue.rb b/Library/Formula/ddrescue.rb index a8e96a5f2..dc0abfe53 100644 --- a/Library/Formula/ddrescue.rb +++ b/Library/Formula/ddrescue.rb @@ -1,10 +1,8 @@ -require "formula" - class Ddrescue < Formula homepage "https://www.gnu.org/software/ddrescue/ddrescue.html" url "http://ftpmirror.gnu.org/ddrescue/ddrescue-1.19.tar.lz" mirror "https://ftp.gnu.org/gnu/ddrescue/ddrescue-1.19.tar.lz" - sha1 "5c5bfa4e2d0cb98feb1fd66cb9ea0c8ab2c7d34d" + sha256 "ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8" bottle do cellar :any @@ -18,4 +16,9 @@ class Ddrescue < Formula "CXX=#{ENV.cxx}" system "make", "install" end + + test do + system bin/"ddrescue", "--force", "--size=64Ki", "/dev/zero", "/dev/null" + end + end |
