Permalink
Browse files

Be more explicit about paths in test methods

  • Loading branch information...
1 parent c45f083 commit 0271b146952409e35ba2cf64c1206ba3693b4aa7 @adamv adamv committed Sep 1, 2011
@@ -15,6 +15,6 @@ def install
end
def test
- system "cat #{prefix}/testcases | aamath"
+ system "cat #{prefix}/testcases | #{bin}/aamath"
end
end
@@ -13,6 +13,6 @@ def install
end
def test
- system "asciiTeX -f #{prefix}/EXAMPLES"
+ system "#{bin}/asciiTeX -f #{prefix}/EXAMPLES"
end
end
@@ -50,6 +50,6 @@ def install
end
def test
- system "clisp --version"
+ system "#{bin}/clisp --version"
end
end
@@ -10,6 +10,6 @@ def install
end
def test
- system "cliweather 98027"
+ system "#{bin}/cliweather 98027"
end
end
@@ -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
@@ -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
@@ -38,6 +38,6 @@ def install
end
def test
- system "figlet -f larry3d hello, figlet"
+ system "#{bin}/figlet -f larry3d hello, figlet"
end
end
@@ -30,7 +30,7 @@ def install
def test
Dir.chdir HOMEBREW_REPOSITORY do
- system "gource"
+ system "#{bin}/gource"
end
end
end
@@ -24,6 +24,6 @@ def install
end
def test
- system "gtk-demo"
+ system "#{bin}/gtk-demo"
end
end
@@ -38,6 +38,6 @@ def caveats; <<-EOS.undent
end
def test
- system "jruby -e 'puts \"hello\"'"
+ system "#{bin}/jruby -e 'puts \"hello\"'"
end
end
@@ -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
@@ -22,6 +22,6 @@ def install
end
def test
- system "lexparser.csh", "#{libexec}/testsent.txt"
+ system "#{bin}/lexparser.csh", "#{libexec}/testsent.txt"
end
end
@@ -13,6 +13,6 @@ def install
end
def test
- system "echo '' | unifdef"
+ system "echo '' | #{bin}/unifdef"
end
end
@@ -17,6 +17,6 @@ def install
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 @@ 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

0 comments on commit 0271b14

Please sign in to comment.