diff options
Diffstat (limited to 'test/runner.rb')
-rw-r--r-- | test/runner.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/runner.rb b/test/runner.rb index d077672160..4ed6f31a35 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -10,6 +10,15 @@ class Gem::TestCase < MiniTest::Unit::TestCase @@project_dir = File.dirname($LOAD_PATH.last) end +srcdir = File.dirname(src_testdir) +default_gems = Dir.glob(srcdir + "/{lib,ext}/**/*.gemspec").map {|path| File.basename(path, ".*")} +File.foreach(srcdir + "/defs/default_gems") do |line| + next if /^\s*#/ =~ line + default_gems << line[/^\S+/] +end +default_gems |= (ENV["GEM_SKIP"] || '').split(/:/) +ENV["GEM_SKIP"] = default_gems.join(':') + require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true' exit Test::Unit::AutoRunner.run(true, src_testdir) |