tokyo-dystopia: test added

Closes Homebrew/homebrew#37816.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-03-17 23:01:35 +01:00 committed by Mike McQuaid
parent bcd6a4caa9
commit ceec55287d

View file

@ -1,15 +1,26 @@
require 'formula'
class TokyoDystopia < Formula
homepage 'http://fallabs.com/tokyodystopia/'
url 'http://fallabs.com/tokyodystopia/tokyodystopia-0.9.15.tar.gz'
sha1 '525a44e517ca9594d28fed111e2d103fe6fbf440'
homepage "http://fallabs.com/tokyodystopia/"
url "http://fallabs.com/tokyodystopia/tokyodystopia-0.9.15.tar.gz"
sha256 "28b43c592a127d1c9168eac98f680aa49d1137b4c14b8d078389bbad1a81830a"
depends_on 'tokyo-cabinet'
depends_on "tokyo-cabinet"
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
system "make", "check"
system "make", "install"
end
test do
(testpath/"test.tsv").write <<-EOS.undent
1\tUnited States
55\tBrazil
81\tJapan
EOS
system "#{bin}/dystmgr", "importtsv", "casket", "test.tsv"
system "#{bin}/dystmgr", "put", "casket", "83", "China"
system "#{bin}/dystmgr", "list", "-pv", "casket"
end
end