there is a scons test built into the lib, but it must be run from the source dir and i’m not sure how to do that in brew since I don’t know what prefix it keeps the source in.

On Apr 17, 2014, at 12:04 AM, Mike McQuaid <notifications@github.com> wrote:

> In Library/Formula/hammer.rb:
> 
> > +require "formula"
> > +
> > +class Hammer < Formula
> > +  homepage "https://github.com/UpstandingHackers/hammer"
> > +  url "https://github.com/UpstandingHackers/hammer/archive/v1.0.0-rc3.tar.gz"
> > +  sha1 "3e578d7f0e0a201aea7707c6041e48ec10ed7609"
> > +  version "1.0.0-rc3"
> > +
> > +  depends_on "scons" => :build
> > +  depends_on "pkg-config"
> > +  depends_on "glib"
> > +
> > +  def install
> > +  scons "PREFIX=#{prefix} install"
> > +  end
> > +end
> Can a test be added to do something more substantial then e.g. --version or --help? See cmake.rb for an example of a formula with a good test. Thanks!
> 
> —
> Reply to this email directly or view it on GitHub.
>