Be more explicit about paths in test methods
parent
3e3a193487
commit
742fe1bde1
|
@ -15,6 +15,6 @@ class Aamath < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "cat #{prefix}/testcases | aamath"
|
||||
system "cat #{prefix}/testcases | #{bin}/aamath"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,6 +13,6 @@ class Asciitex < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "asciiTeX -f #{prefix}/EXAMPLES"
|
||||
system "#{bin}/asciiTeX -f #{prefix}/EXAMPLES"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -50,6 +50,6 @@ class Clisp < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "clisp --version"
|
||||
system "#{bin}/clisp --version"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,6 +10,6 @@ class Cliweather < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "cliweather 98027"
|
||||
system "#{bin}/cliweather 98027"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -37,6 +37,6 @@ class Clojure < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "clj -e \"(println \\\"Hello World\\\")\""
|
||||
system "#{bin}/clj -e \"(println \\\"Hello World\\\")\""
|
||||
end
|
||||
end
|
||||
|
|
|
@ -87,12 +87,12 @@ class Erlang < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
`erl -noshell -eval 'crypto:start().' -s init stop`
|
||||
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`
|
||||
|
||||
# This test takes some time to run, but per bug #120 should finish in
|
||||
# "less than 20 minutes". It takes a few minutes on a Mac Pro (2009).
|
||||
if ARGV.include? "--time"
|
||||
`dialyzer --build_plt -r #{lib}/erlang/lib/kernel-2.14.1/ebin/`
|
||||
`#{bin}/dialyzer --build_plt -r #{lib}/erlang/lib/kernel-2.14.1/ebin/`
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -38,6 +38,6 @@ class Figlet < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "figlet -f larry3d hello, figlet"
|
||||
system "#{bin}/figlet -f larry3d hello, figlet"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,7 +30,7 @@ class Gource < Formula
|
|||
|
||||
def test
|
||||
Dir.chdir HOMEBREW_REPOSITORY do
|
||||
system "gource"
|
||||
system "#{bin}/gource"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,6 +24,6 @@ class Gtkx < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "gtk-demo"
|
||||
system "#{bin}/gtk-demo"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -38,6 +38,6 @@ class Jruby < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "jruby -e 'puts \"hello\"'"
|
||||
system "#{bin}/jruby -e 'puts \"hello\"'"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -44,7 +44,7 @@ class Luarocks < Formula
|
|||
|
||||
def test
|
||||
opoo "Luarocks test script installs 'lpeg'"
|
||||
system "luarocks install lpeg"
|
||||
system "#{bin}/luarocks install lpeg"
|
||||
system "lua", "-llpeg", "-e", 'print ("Hello World!")'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,6 @@ EOS
|
|||
end
|
||||
|
||||
def test
|
||||
system "lexparser.csh", "#{libexec}/testsent.txt"
|
||||
system "#{bin}/lexparser.csh", "#{libexec}/testsent.txt"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,6 +13,6 @@ class Unifdef < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "echo '' | unifdef"
|
||||
system "echo '' | #{bin}/unifdef"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,6 +17,6 @@ class Vala < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "valac --version"
|
||||
system "#{bin}/valac --version"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ class Zint < Formula
|
|||
md5 '2b47caff88cb746f212d6a0497185358'
|
||||
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
|
||||
|
||||
depends_on 'cmake'
|
||||
depends_on 'cmake' => :build
|
||||
|
||||
def install
|
||||
mkdir 'zint-build'
|
||||
|
@ -16,8 +16,9 @@ class Zint < Formula
|
|||
end
|
||||
|
||||
def test
|
||||
system "zint -o test-zing.png -d 'This Text'"
|
||||
system "open test-zing.png"
|
||||
puts "You may want to `rm test-zing.png`"
|
||||
mktemp do
|
||||
system "#{bin}/zint -o test-zing.png -d 'This Text'"
|
||||
system "/usr/bin/open test-zing.png && sleep 3"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue