homebrew-core/Formula/q.rb

18 lines
362 B
Ruby
Raw Normal View History

2014-05-04 19:12:41 +00:00
require "formula"
class Q < Formula
2014-05-04 19:12:41 +00:00
homepage "https://github.com/harelba/q"
url "https://github.com/harelba/q/archive/1.4.0.tar.gz"
sha1 "e8efe87aa691a7ab57e95f15cf4b2babfbabe945"
def install
2014-05-04 19:12:41 +00:00
bin.install "bin/q"
end
test do
2014-05-04 19:12:41 +00:00
output = shell_output("seq 1 100 | #{bin}/q 'select sum(c1) from -'")
assert_equal "5050\n", output
end
end