Skip to content

Commit

Permalink
Convert all 'def test' formulae to 'test do'
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#26942.
Closes Homebrew/legacy-homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
tedpennings authored and adamv committed Feb 25, 2014
1 parent 0c7a866 commit 4cd0935
Show file tree
Hide file tree
Showing 198 changed files with 198 additions and 198 deletions.
2 changes: 1 addition & 1 deletion Formula/abcmidi.rb
Expand Up @@ -20,7 +20,7 @@ def install
system "make", "install"
end

def test
test do
system "#{bin}/abc2midi"
end
end
2 changes: 1 addition & 1 deletion Formula/analog.rb
Expand Up @@ -21,7 +21,7 @@ def install
man1.install "analog.man" => "analog.1"
end

def test
test do
system "\"#{bin}/analog\" > /dev/null"
end
end
2 changes: 1 addition & 1 deletion Formula/appledoc.rb
Expand Up @@ -23,7 +23,7 @@ def install
prefix.install "Templates/"
end

def test
test do
system "#{bin}/appledoc", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/apt-dater.rb
Expand Up @@ -17,7 +17,7 @@ def install
system "make", "AM_LDFLAGS=", "install"
end

def test
test do
system "#{bin}/apt-dater", "-v"
end
end
2 changes: 1 addition & 1 deletion Formula/arp-scan.rb
Expand Up @@ -11,7 +11,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/arp-scan", "-V"
end
end
2 changes: 1 addition & 1 deletion Formula/asciitex.rb
Expand Up @@ -12,7 +12,7 @@ def install
prefix.install 'EXAMPLES'
end

def test
test do
system "#{bin}/asciiTeX", "-f", "#{prefix}/EXAMPLES"
end
end
2 changes: 1 addition & 1 deletion Formula/aubio.rb
Expand Up @@ -31,7 +31,7 @@ def install
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end

def test
test do
system "#{bin}/aubiocut", "--help"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/automake.rb
Expand Up @@ -33,7 +33,7 @@ def install
EOS
end

def test
test do
system "#{bin}/automake", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/bbcp.rb
Expand Up @@ -21,7 +21,7 @@ def install
bin.install "bin/bbcp"
end

def test
test do
system "#{bin}/bbcp", "--help"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/bindfs.rb
Expand Up @@ -14,7 +14,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/bindfs", "-V"
end
end
2 changes: 1 addition & 1 deletion Formula/bochs.rb
Expand Up @@ -48,7 +48,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/bochs"
end
end
2 changes: 1 addition & 1 deletion Formula/calabash.rb
Expand Up @@ -14,7 +14,7 @@ def install
bin.write_jar_script libexec/'calabash.jar', 'calabash', '-Xmx1024m'
end

def test
test do
# This small XML pipeline (*.xpl) that comes with Calabash
# is basically its equivalent "Hello World" program.
system "#{bin}/calabash", "#{libexec}/xpl/pipe.xpl"
Expand Down
2 changes: 1 addition & 1 deletion Formula/ceylon.rb
Expand Up @@ -20,7 +20,7 @@ def caveats
"Ceylon requires Java 7."
end

def test
test do
cd "#{libexec}/samples/helloworld" do
system "#{bin}/ceylon", "compile", "com.acme.helloworld"
system "#{bin}/ceylon", "doc", "--non-shared", "com.acme.helloworld"
Expand Down
2 changes: 1 addition & 1 deletion Formula/cfengine.rb
Expand Up @@ -27,7 +27,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/cf-agent", "-V"
end
end
2 changes: 1 addition & 1 deletion Formula/clamz.rb
Expand Up @@ -13,7 +13,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/clamz"
end
end
2 changes: 1 addition & 1 deletion Formula/clay.rb
Expand Up @@ -15,7 +15,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/clay", "-e", "println(\"Hello, Clay!\");"
end
end
2 changes: 1 addition & 1 deletion Formula/clisp.rb
Expand Up @@ -53,7 +53,7 @@ def install
end
end

def test
test do
system "#{bin}/clisp", "--version"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/clozure-cl.rb
Expand Up @@ -51,7 +51,7 @@ def test_ccl(bit = 32)
%Q{#{ccl} -e '(progn (format t "Hello world from #{bit}-bit ClozureCL") (ccl::quit))'}
end

def test
test do
system test_ccl
system test_ccl(64)
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/couchdb.rb
Expand Up @@ -76,7 +76,7 @@ def plist; <<-EOS.undent
EOS
end

def test
test do
# ensure couchdb embedded spidermonkey vm works
system "#{bin}/couchjs", "-h"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/cppcheck.rb
Expand Up @@ -40,7 +40,7 @@ def install
end
end

def test
test do
system "#{bin}/cppcheck", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/csup.rb
Expand Up @@ -12,7 +12,7 @@ def install
man1.install "csup.1"
end

def test
test do
system "#{bin}/csup", "-v"
end
end
2 changes: 1 addition & 1 deletion Formula/csync.rb
Expand Up @@ -51,7 +51,7 @@ def install
end
end

def test
test do
system "csync", "-V"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/daemon.rb
Expand Up @@ -11,7 +11,7 @@ def install
system "make", "PREFIX=#{prefix}", "install"
end

def test
test do
system "#{bin}/daemon", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/dash.rb
Expand Up @@ -23,7 +23,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/dash", "-c", "echo Hello!"
end
end
2 changes: 1 addition & 1 deletion Formula/di.rb
Expand Up @@ -10,7 +10,7 @@ def install
system "make", "install", "prefix=#{prefix}", "DI_MANDIR=#{man1}"
end

def test
test do
system "#{bin}/di"
end
end
2 changes: 1 addition & 1 deletion Formula/diffuse.rb
Expand Up @@ -14,7 +14,7 @@ def install
"--prefix=#{prefix}"
end

def test
test do
system "#{bin}/diffuse", "--help"
end
end
2 changes: 1 addition & 1 deletion Formula/distcc.rb
Expand Up @@ -58,7 +58,7 @@ def caveats; <<-EOS.undent
EOS
end

def test
test do
system "#{bin}/distcc", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/djvu2pdf.rb
Expand Up @@ -13,7 +13,7 @@ def install
man1.install 'djvu2pdf.1.gz'
end

def test
test do
system "#{bin}/djvu2pdf", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/dmd.rb
Expand Up @@ -58,7 +58,7 @@ def install
end
end

def test
test do
system "dmd", "#{prefix}/samples/hello.d"
system "./hello"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/dmenu.rb
Expand Up @@ -12,7 +12,7 @@ def install
system "make", "PREFIX=#{prefix}", "install"
end

def test
test do
system "#{bin}/dmenu", "-v"
end
end
2 changes: 1 addition & 1 deletion Formula/duti.rb
Expand Up @@ -14,7 +14,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/duti", "-x", "txt"
end
end
2 changes: 1 addition & 1 deletion Formula/dwatch.rb
Expand Up @@ -19,7 +19,7 @@ def install
etc.install "dwatch.conf"
end

def test
test do
# '-h' is not actually an option, but it exits 0
system "#{bin}/dwatch", "-h"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/dylibbundler.rb
Expand Up @@ -10,7 +10,7 @@ def install
bin.install "dylibbundler"
end

def test
test do
system "#{bin}/dylibbundler", "-h"
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/epic5.rb
Expand Up @@ -13,7 +13,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/epic5", "-v"
end
end
2 changes: 1 addition & 1 deletion Formula/eprover.rb
Expand Up @@ -11,7 +11,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/eproof"
end
end
2 changes: 1 addition & 1 deletion Formula/erlang.rb
Expand Up @@ -98,7 +98,7 @@ def caveats; <<-EOS.undent
EOS
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
Expand Down
2 changes: 1 addition & 1 deletion Formula/exiftool.rb
Expand Up @@ -24,7 +24,7 @@ def install
EOBIN
end

def test
test do
system "#{libexec}/exiftool"
end
end
2 changes: 1 addition & 1 deletion Formula/fastbit.rb
Expand Up @@ -14,7 +14,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/fastbit-config", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/fastjar.rb
Expand Up @@ -11,7 +11,7 @@ def install
system "make install"
end

def test
test do
system "#{bin}/fastjar", "-V"
system "#{bin}/grepjar", "-V"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/ffmbc.rb
Expand Up @@ -66,7 +66,7 @@ def caveats
EOS
end

def test
test do
system "#{bin}/ffmbc", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/figlet.rb
Expand Up @@ -29,7 +29,7 @@ def install
"install"
end

def test
test do
system "#{bin}/figlet", "-f", "larry3d", "hello, figlet"
end
end
2 changes: 1 addition & 1 deletion Formula/findbugs.rb
Expand Up @@ -25,7 +25,7 @@ def caveats; <<-EOS.undent
EOS
end

def test
test do
system "#{bin}/fb"
end
end
2 changes: 1 addition & 1 deletion Formula/fon-flash-cli.rb
Expand Up @@ -14,7 +14,7 @@ def install
end
end

def test
test do
system "#{bin}/fon-flash"
end
end
2 changes: 1 addition & 1 deletion Formula/freeling.rb
Expand Up @@ -23,7 +23,7 @@ def install
system "make install"
end

def test
test do
system "echo 'Hello world' | #{bin}/analyze -f #{share}/freeling/config/en.cfg | grep -c 'world world NN 1'"
end
end

0 comments on commit 4cd0935

Please sign in to comment.