1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add this rule to run common tests and specifics ones from adapters dir

This commit is contained in:
Santiago Pastorino 2010-06-28 01:19:24 -03:00 committed by Jeremy Kemper
parent 4f74d449ee
commit ab96c71a52

View file

@ -62,7 +62,9 @@ end
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/]
puts [adapter, adapter_short, connection_path].inspect
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
Dir["test/cases/**/*_test{,_#{adapter_short}}.rb"].all? do |file|
(Dir["test/cases/**/*_test.rb"].reject {
|x| x =~ /\/adapters\//
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
system(ruby, "-Ilib:test:#{connection_path}", file)
end or raise "Failures"
end