File: Rakefile

package info (click to toggle)
ruby-wavefile 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,708 kB
  • sloc: ruby: 4,171; makefile: 2
file content (29 lines) | stat: -rwxr-xr-x 793 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
24
25
26
27
28
29
require 'rake/testtask'
require 'rdoc/task'
#$:.push File.expand_path("../tools", __FILE__)

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/**/*_test.rb']
end

RDoc::Task.new do |rdoc|
  rdoc.rdoc_files.include("README.rdoc", "lib")
  rdoc.main = "README.rdoc"
  rdoc.title = "WaveFile Gem - Read/Write *.wav Files with Ruby"
  rdoc.markup = "tomdoc"
  rdoc.rdoc_dir = "doc"
end

namespace :test do
  task :create_fixtures do
    ["valid", "invalid", "unsupported"].each do |subfolder|
      fixtures = Dir.glob("test/fixtures/yaml/#{subfolder}/*.yml")

      fixtures.each do |fixture|
        basename = File.basename(fixture, ".yml")
        `ruby tools/fixture_writer.rb #{fixture} test/fixtures/wave/#{subfolder}/#{basename}.wav`
      end
    end
  end
end