diff options
| author | Baptiste Fontaine | 2015-03-26 10:03:12 +0100 |
|---|---|---|
| committer | Xu Cheng | 2015-03-27 16:11:37 +0800 |
| commit | 0e46abaa1ae92b19cc18845fe6d6a3f5b8dc8257 (patch) | |
| tree | 02fb82c4b915ef9109020b90dc7d816202660214 /Library | |
| parent | 46fabdea4c75cb15b2359c81fae24e3ee8b18896 (diff) | |
| download | homebrew-0e46abaa1ae92b19cc18845fe6d6a3f5b8dc8257.tar.bz2 | |
dcal: test added
Closes #38094.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/dcal.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/dcal.rb b/Library/Formula/dcal.rb index 3d58ac956..8cbd8ddfa 100644 --- a/Library/Formula/dcal.rb +++ b/Library/Formula/dcal.rb @@ -1,13 +1,15 @@ -require 'formula' - class Dcal < Formula - homepage 'http://alexeyt.freeshell.org/' - url 'http://alexeyt.freeshell.org/code/dcal.c' - version '0.1.0' - sha1 '3b1d4ed45ed0192df4841ed9e371c89fe87bdeac' + homepage "http://alexeyt.freeshell.org/" + url "http://alexeyt.freeshell.org/code/dcal.c" + version "0.1.0" + sha256 "d637fd27fc8d2a3c567b215fc05ee0fd9d88ba9fc5ddd5f0b07af3b8889dcba7" def install system ENV.cxx, "dcal.c", "-o", "dcal" - bin.install 'dcal' + bin.install "dcal" + end + + test do + system "#{bin}/dcal", "-3" end end |
