# -*- ruby -*-

require 'autotest/restart'

Autotest.add_hook :initialize do |at|
  at.libs << ":../../sexp_processor/3.2.0/lib"
  at.libs << ":../../RubyInline/dev/lib"
  at.libs << ":../../ZenTest/dev/lib"
  at.libs << ":../../minitest/dev/lib"

  at.extra_files << "../../sexp_processor/dev/3.2.0/pt_testcase.rb"

  at.extra_class_map["TestRawParseTree"] = "test/test_parse_tree.rb"
  at.extra_class_map["R2RTestCase"] = "test/test_parse_tree_extensions.rb"

  at.testlib = "minitest/autorun"

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