Skip to content

Commit

Permalink
since: test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#38418.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
  • Loading branch information
bfontaine authored and tdsmith committed Apr 7, 2015
1 parent 69b26a4 commit e2c0434
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions Formula/since.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
require 'formula'

class Since < Formula
homepage 'http://welz.org.za/projects/since'
url 'http://welz.org.za/projects/since/since-1.1.tar.gz'
sha1 '67f07e8237d63f846cd8ca60b5a16fc32d4f81a5'
homepage "http://welz.org.za/projects/since"
url "http://welz.org.za/projects/since/since-1.1.tar.gz"
sha256 "739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45"

def install
system "make"
bin.install "since"
man1.install "since.1"
bin.mkpath
man1.mkpath
system "make", "install", "prefix=#{prefix}", "INSTALL=install"
end

test do
(testpath/"test").write <<-EOS.undent
foo
bar
EOS
system "#{bin}/since", "-z", "test"
assert File.exist? ".since"
end
end

0 comments on commit e2c0434

Please sign in to comment.