diff options
| author | Adam Vandenberg | 2011-09-01 13:00:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-09-01 13:00:28 -0700 |
| commit | 0271b146952409e35ba2cf64c1206ba3693b4aa7 (patch) | |
| tree | f3a433f31c7bd36f5d758653dbaa86a07ccf7f7c /Library/Formula | |
| parent | c45f08304306559f8b2b1f04f22fa35ad62852f1 (diff) | |
| download | homebrew-0271b146952409e35ba2cf64c1206ba3693b4aa7.tar.bz2 | |
Be more explicit about paths in test methods
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/aamath.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/asciitex.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/clisp.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/cliweather.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/clojure.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/erlang.rb | 4 | ||||
| -rw-r--r-- | Library/Formula/figlet.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/gource.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/gtk+.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/jruby.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/luarocks.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/stanford-parser.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/unifdef.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/vala.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/zint.rb | 9 |
15 files changed, 20 insertions, 19 deletions
diff --git a/Library/Formula/aamath.rb b/Library/Formula/aamath.rb index 15aef7492..7320eae6e 100644 --- a/Library/Formula/aamath.rb +++ b/Library/Formula/aamath.rb @@ -15,6 +15,6 @@ class Aamath < Formula end def test - system "cat #{prefix}/testcases | aamath" + system "cat #{prefix}/testcases | #{bin}/aamath" end end diff --git a/Library/Formula/asciitex.rb b/Library/Formula/asciitex.rb index 9456ccea3..92e0c2675 100644 --- a/Library/Formula/asciitex.rb +++ b/Library/Formula/asciitex.rb @@ -13,6 +13,6 @@ class Asciitex < Formula end def test - system "asciiTeX -f #{prefix}/EXAMPLES" + system "#{bin}/asciiTeX -f #{prefix}/EXAMPLES" end end diff --git a/Library/Formula/clisp.rb b/Library/Formula/clisp.rb index 8b988e56f..6ab6b3e35 100644 --- a/Library/Formula/clisp.rb +++ b/Library/Formula/clisp.rb @@ -50,6 +50,6 @@ class Clisp < Formula end def test - system "clisp --version" + system "#{bin}/clisp --version" end end diff --git a/Library/Formula/cliweather.rb b/Library/Formula/cliweather.rb index b68f53d3e..921293bc1 100644 --- a/Library/Formula/cliweather.rb +++ b/Library/Formula/cliweather.rb @@ -10,6 +10,6 @@ class Cliweather < Formula end def test - system "cliweather 98027" + system "#{bin}/cliweather 98027" end end diff --git a/Library/Formula/clojure.rb b/Library/Formula/clojure.rb index 0d5f27b93..2fe39015f 100644 --- a/Library/Formula/clojure.rb +++ b/Library/Formula/clojure.rb @@ -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 diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb index 6383dd85c..6f7adb373 100644 --- a/Library/Formula/erlang.rb +++ b/Library/Formula/erlang.rb @@ -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 diff --git a/Library/Formula/figlet.rb b/Library/Formula/figlet.rb index c1d56dafc..12f25e6af 100644 --- a/Library/Formula/figlet.rb +++ b/Library/Formula/figlet.rb @@ -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 diff --git a/Library/Formula/gource.rb b/Library/Formula/gource.rb index 61ce68d52..cdde6028e 100644 --- a/Library/Formula/gource.rb +++ b/Library/Formula/gource.rb @@ -30,7 +30,7 @@ class Gource < Formula def test Dir.chdir HOMEBREW_REPOSITORY do - system "gource" + system "#{bin}/gource" end end end diff --git a/Library/Formula/gtk+.rb b/Library/Formula/gtk+.rb index 6d347ebed..045644136 100644 --- a/Library/Formula/gtk+.rb +++ b/Library/Formula/gtk+.rb @@ -24,6 +24,6 @@ class Gtkx < Formula end def test - system "gtk-demo" + system "#{bin}/gtk-demo" end end diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb index e6c152a91..864e3347c 100644 --- a/Library/Formula/jruby.rb +++ b/Library/Formula/jruby.rb @@ -38,6 +38,6 @@ class Jruby < Formula end def test - system "jruby -e 'puts \"hello\"'" + system "#{bin}/jruby -e 'puts \"hello\"'" end end diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb index 7507fe5dd..655edc4df 100644 --- a/Library/Formula/luarocks.rb +++ b/Library/Formula/luarocks.rb @@ -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 diff --git a/Library/Formula/stanford-parser.rb b/Library/Formula/stanford-parser.rb index cd3aaef72..e5f52f939 100644 --- a/Library/Formula/stanford-parser.rb +++ b/Library/Formula/stanford-parser.rb @@ -22,6 +22,6 @@ EOS end def test - system "lexparser.csh", "#{libexec}/testsent.txt" + system "#{bin}/lexparser.csh", "#{libexec}/testsent.txt" end end diff --git a/Library/Formula/unifdef.rb b/Library/Formula/unifdef.rb index 2b1fa7f25..9e3117ea4 100644 --- a/Library/Formula/unifdef.rb +++ b/Library/Formula/unifdef.rb @@ -13,6 +13,6 @@ class Unifdef < Formula end def test - system "echo '' | unifdef" + system "echo '' | #{bin}/unifdef" end end diff --git a/Library/Formula/vala.rb b/Library/Formula/vala.rb index e5fdce2d1..2ee8fccef 100644 --- a/Library/Formula/vala.rb +++ b/Library/Formula/vala.rb @@ -17,6 +17,6 @@ class Vala < Formula end def test - system "valac --version" + system "#{bin}/valac --version" end end diff --git a/Library/Formula/zint.rb b/Library/Formula/zint.rb index c4d48e479..b8fec40b5 100644 --- a/Library/Formula/zint.rb +++ b/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 @@ 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 |
