Browse files

use block-style test

  • Loading branch information...
1 parent d361829 commit ec73b7bbf311cd8994029d183192454ff072a381 @jacknagel jacknagel committed Mar 20, 2013
Showing with 11 additions and 13 deletions.
  1. +1 −1 appledoc20.rb
  2. +1 −1 automake112.rb
  3. +1 −1 clojure14.rb
  4. +1 −1 erlang-r13.rb
  5. +1 −1 erlang-r14.rb
  6. +1 −1 erlang-r15.rb
  7. +1 −1 erlang-r16.rb
  8. +3 −5 libpng12.rb
  9. +1 −1 python32.rb
View
2 appledoc20.rb
@@ -22,7 +22,7 @@ def install
prefix.install "Templates/"
end
- def test
+ test do
system "#{bin}/appledoc", "--version"
end
end
View
2 automake112.rb
@@ -24,7 +24,7 @@ def install
EOS
end
- def test
+ test do
system "#{bin}/automake112", "--version"
end
end
View
2 clojure14.rb
@@ -40,7 +40,7 @@ def caveats; <<-EOS.undent
EOS
end
- def test
+ test do
system "#{bin}/clj", "-e", '(println "Hello World")'
end
end
View
2 erlang-r13.rb
@@ -56,7 +56,7 @@ def install
manuals.new.brew { man.install Dir['man/*'] }
end
- def test
+ test do
`erl -noshell -eval 'crypto:start().' -s init stop`
# This test takes some time to run, but per bug #120 should finish in
View
2 erlang-r14.rb
@@ -73,7 +73,7 @@ def install
end
end
- def test
+ test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`
# This test takes some time to run, but per bug #120 should finish in
View
2 erlang-r15.rb
@@ -87,7 +87,7 @@ def install
end
end
- def test
+ test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`
# This test takes some time to run, but per bug #120 should finish in
View
2 erlang-r16.rb
@@ -87,7 +87,7 @@ def install
end
end
- def test
+ test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`
# This test takes some time to run, but per bug #120 should finish in
View
8 libpng12.rb
@@ -19,10 +19,8 @@ def install
libexec.install 'pngtest.png', '.libs/pngtest'
end
- def test
- mktemp do
- system "#{libexec}/pngtest", "#{libexec}/pngtest.png"
- system "/usr/bin/qlmanage", "-p", "pngout.png"
- end
+ test do
+ system "#{libexec}/pngtest", "#{libexec}/pngtest.png"
+ system "/usr/bin/qlmanage", "-p", "pngout.png"
end
end
View
2 python32.rb
@@ -270,7 +270,7 @@ def caveats
return text
end
- def test
+ test do
# Check if sqlite is ok, because we build with --enable-loadable-sqlite-extensions
# and it can occur that building sqlite silently fails if OSX's sqlite is used.
system "#{bin}/python#{VER}", "-c", "import sqlite3"

0 comments on commit ec73b7b

Please sign in to comment.