require 'gem2deb/rake/testtask'

exclude = "/^(" + File.readlines("debian/tests/exclude").map(&:strip).join("|") + ")$/"

Gem2Deb::Rake::TestTask.new do |t|
  t.libs = ['test']
  t.test_files = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb']
  t.options = "--exclude='#{exclude}'"
end
