Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Be more explicit about paths in test methods

  • Loading branch information...
commit 0271b146952409e35ba2cf64c1206ba3693b4aa7 1 parent c45f083
@adamv adamv authored
View
2  Library/Formula/aamath.rb
@@ -15,6 +15,6 @@ def install
end
def test
- system "cat #{prefix}/testcases | aamath"
+ system "cat #{prefix}/testcases | #{bin}/aamath"
end
end
View
2  Library/Formula/asciitex.rb
@@ -13,6 +13,6 @@ def install
end
def test
- system "asciiTeX -f #{prefix}/EXAMPLES"
+ system "#{bin}/asciiTeX -f #{prefix}/EXAMPLES"
end
end
View
2  Library/Formula/clisp.rb
@@ -50,6 +50,6 @@ def install
end
def test
- system "clisp --version"
+ system "#{bin}/clisp --version"
end
end
View
2  Library/Formula/cliweather.rb
@@ -10,6 +10,6 @@ def install
end
def test
- system "cliweather 98027"
+ system "#{bin}/cliweather 98027"
end
end
View
2  Library/Formula/clojure.rb
@@ -37,6 +37,6 @@ def caveats; <<-EOS.undent
end
def test
- system "clj -e \"(println \\\"Hello World\\\")\""
+ system "#{bin}/clj -e \"(println \\\"Hello World\\\")\""
end
end
View
4 Library/Formula/erlang.rb
@@ -87,12 +87,12 @@ def install
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
View
2  Library/Formula/figlet.rb
@@ -38,6 +38,6 @@ def install
end
def test
- system "figlet -f larry3d hello, figlet"
+ system "#{bin}/figlet -f larry3d hello, figlet"
end
end
View
2  Library/Formula/gource.rb
@@ -30,7 +30,7 @@ def install
def test
Dir.chdir HOMEBREW_REPOSITORY do
- system "gource"
+ system "#{bin}/gource"
end
end
end
View
2  Library/Formula/gtk+.rb
@@ -24,6 +24,6 @@ def install
end
def test
- system "gtk-demo"
+ system "#{bin}/gtk-demo"
end
end
View
2  Library/Formula/jruby.rb
@@ -38,6 +38,6 @@ def caveats; <<-EOS.undent
end
def test
- system "jruby -e 'puts \"hello\"'"
+ system "#{bin}/jruby -e 'puts \"hello\"'"
end
end
View
2  Library/Formula/luarocks.rb
@@ -44,7 +44,7 @@ def caveats; <<-EOS.undent
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
View
2  Library/Formula/stanford-parser.rb
@@ -22,6 +22,6 @@ def install
end
def test
- system "lexparser.csh", "#{libexec}/testsent.txt"
+ system "#{bin}/lexparser.csh", "#{libexec}/testsent.txt"
end
end
View
2  Library/Formula/unifdef.rb
@@ -13,6 +13,6 @@ def install
end
def test
- system "echo '' | unifdef"
+ system "echo '' | #{bin}/unifdef"
end
end
View
2  Library/Formula/vala.rb
@@ -17,6 +17,6 @@ def install
end
def test
- system "valac --version"
+ system "#{bin}/valac --version"
end
end
View
9 Library/Formula/zint.rb
@@ -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 @@ def install
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
Please sign in to comment.
Something went wrong with that request. Please try again.