2010-06-30 07:27:23 -07:00

21 lines
359 B
Ruby
Executable File

ARGV.formulae.each do |f|
# Cannot test uninstalled formulae
unless f.installed?
puts "#{f.name} not installed"
next
end
# Cannot test formulae without a test method
unless f.respond_to? :test
puts "#{f.name} defines no test"
next
end
puts "Testing #{f.name}"
begin
f.test
rescue
puts "#{f.name}: failed"
end
end