File: ruby-tests.rake

package info (click to toggle)
vagrant 2.3.7%2Bgit20230731.5fc64cde%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 17,616 kB
  • sloc: ruby: 111,820; sh: 462; makefile: 123; ansic: 34; lisp: 1
file content (19 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'gem2deb/rake/spectask'
require 'tmpdir'

SKIP = %w[
  test/unit/vagrant/action/builtin/box_add_test.rb
  test/unit/plugins/communicators/winrm/*_test.rb
  test/unit/plugins/pushes/ftp/*_test.rb
  test/unit/plugins/commands/serve/mappers_test.rb
]

lib = File.expand_path(File.dirname(__FILE__) + "/../debian/lib")

ENV["HOME"] = Dir.mktmpdir("vagrant-tests-home")

Gem2Deb::Rake::RSpecTask.new do |spec|
  spec.pattern = 'test/unit/{plugins}/**/*_test.rb'
  spec.exclude_pattern = "{#{SKIP.join(',')}}"
  spec.rspec_opts = "-I#{lib}"
end