mysqlplus/test/RUN_ALL_TESTS.RB

10 lines
332 B
Plaintext
Raw Normal View History

2009-04-18 23:06:12 +00:00
# I suppose if all the tests don't blow up, that probably means pass
require 'mysqlplus'
for file in Dir.glob('*_test.rb') do
2009-04-18 23:07:30 +00:00
puts 'testing ' + file
2009-04-18 23:06:12 +00:00
# fork so we don't run out of connections to the mysql db, as few tests ever clean up their old processes
pid = Process.fork { load file }
Process.wait(pid)
end
puts 'successful'