aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/q.rb
blob: 95210f25652d0228c615514f71dc5d43da22b5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "formula"

class Q < Formula
  homepage "https://github.com/harelba/q"
  url "https://github.com/harelba/q/archive/1.4.0.tar.gz"
  sha1 "e8efe87aa691a7ab57e95f15cf4b2babfbabe945"

  def install
    bin.install "bin/q"
  end

  test do
    output = shell_output("seq 1 100 | #{bin}/q 'select sum(c1) from -'")
    assert_equal "5050\n", output
  end
end