add test runner for all

This commit is contained in:
Roger Pack 2009-04-18 23:06:12 +00:00
parent e14c8b9876
commit 021cd36670
6 changed files with 9 additions and 0 deletions

9
test/test_all.rb Normal file
View File

@ -0,0 +1,9 @@
# I suppose if all the tests don't blow up, that probably means pass
require 'mysqlplus'
for file in Dir.glob('*_test.rb') do
puts 'testing ' + file + "\n\n\n\n\n"
# 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'