Commit 832e2b5e authored by Antonio Terceiro's avatar Antonio Terceiro

Rakefile: list legacy tests

parent 7d6d21be
require 'rake/testtask'
ALL_TESTS = FileList['t/*.rb']
TESTS = `grep -l test/unit t/*.rb`.split
Rake::TestTask.new(:default) do |t|
t.libs << "test" << "ext/debian_version"
t.test_files = `grep -l test/unit t/*.rb`.split
t.test_files = TESTS
t.verbose = true
end
......@@ -14,3 +17,12 @@ file 'ext/debian_version/debian_version.so' => FileList['ext/debian_version/*.{.
sh 'make'
end
end
task :default => :legacy_tests
task :legacy_tests do
legacy = ALL_TESTS - TESTS
legacy.each do |t|
puts "W: legacy tests, ignored: #{t}"
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment