~ubuntu-branches/ubuntu/vivid/remake/vivid

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
30
31
#!/usr/bin/env rake
# -*- Ruby -*-

ROOT_DIR = File.dirname(__FILE__)
SPEC_FILES = FileList["#{ROOT_DIR}/tests/spec/test-*.rb"]

task :default => [:test]
task :check => [:test]

desc 'Test everything - the default.'
task :test => [:'test:basic', :'test:dbg']

desc 'The normal GNU make test suite'
task :'test:basic' do
  sh "make check"
end

desc 'Install via make'
task :'install' do
  sh "make install"
end

desc 'Debugger-specific tests'
task :'test:dbg' do
  sh "rspec #{SPEC_FILES.to_a.join(' ')}"
end

desc 'Make ChangeLog'
task :ChangeLog do
  sh 'make ChangeLog'
end