File: .autotest

package info (click to toggle)
libruby2ruby-ruby 1.2.4-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 104 kB
  • ctags: 120
  • sloc: ruby: 899; sh: 15; makefile: 7
file content (23 lines) | stat: -rw-r--r-- 637 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- ruby -*-

require 'autotest/restart'

Autotest.add_hook :initialize do |at|
  at.extra_files << "../../ParseTree/dev/test/pt_testcase.rb"
  at.extra_files << "../../ParseTree/dev/lib/unified_ruby.rb"
  at.libs << ":../../sexp_processor/dev/lib:../../ParseTree/dev/lib:../../ParseTree/dev/test"

  (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