File: ruby-tests.rake

package info (click to toggle)
rubygems 3.6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 37,448 kB
  • sloc: ruby: 141,650; sh: 94; makefile: 28
file content (17 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'gem2deb/rake/testtask'

skiplist = File.read("debian/ruby-tests.skip").split
ENV["TESTOPTS"] = skiplist.map { |item| "--ignore-name='#{item}'" }.join(" ")
ENV["TESTOPTS"] += " --ignore-testcase=TestGemPlatform" if RUBY_VERSION < "3.2"
ENV["TESTOPTS"] += " --ignore-testcase=TestGemBundledCA" # these hit the network
ENV["TESTOPTS"] += " --verbose"

exclude = %w[
  test/rubygems/test_gem_commands_update_command.rb
]

Rake::TestTask.new(:default) do |t|
  t.ruby_opts = %w[-w]
  t.libs << "test"
  t.test_files = FileList["test/**/test_*.rb"] - exclude
end