File: ruby-tests.rake

package info (click to toggle)
ruby-stackprof 0.2.26-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: python: 2,494; ruby: 1,264; perl: 920; ansic: 761; javascript: 735; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 461 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
require 'gem2deb/rake/testtask'

skipped = %w[
  StackProfTest#test_walltime
  StackProfTest#test_gc
  StackProfTest#test_raw
].join("|")

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

task :cleanup do
  Dir.glob("**/lib/stackprof/stackprof.so").each do |f|
    FileUtils.rm_f(f)
  end
end

task :default => :cleanup