File: .autotest

package info (click to toggle)
ruby-ruby2ruby 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 192 kB
  • sloc: ruby: 1,626; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- ruby -*-

require 'autotest/restart'

Autotest.add_hook :initialize do |at|
  at.libs << ':../../minitest/dev/lib'
  at.testlib = "minitest/autorun"

  at.extra_files << "../../sexp_processor/dev/lib/pt_testcase.rb"
  at.libs << ":../../sexp_processor/dev/lib:../../ruby_parser/dev/lib"

  (1..4).each do |n|
    at.extra_class_map["TestRuby2Ruby#{n}"] = "test/test_ruby2ruby.rb"
  end

  at.add_mapping(/unified|pt_testcase/) do |f, _|
    at.files_matching(/test.*rb$/)
  end
end

if ENV['RCOV'] then
  require 'autotest/rcov'
  Autotest::RCov.command = 'rcov_info'
  Autotest::RCov.pattern = 'test/test_ruby2ruby.rb'
end