From 24ebf70a1dcd085598a67d7d398ffba649fa45b0 Mon Sep 17 00:00:00 2001 From: Mohak Shah Date: Sun, 12 Apr 2015 23:56:16 +0530 Subject: ddrescue: Added a test block, removed `require "formula"` and updated to SHA256 --- Library/Formula/ddrescue.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3