summaryrefslogtreecommitdiff
path: root/rake_tasks/test.rake
blob: 894cd19c4f8bfca03645caa5c5eac425dc81eaa9 (plain)
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
namespace :test do
  desc 'run all sample tests'
  task :samples do
    system 'ruby -wd ./sample/suite.rb'
  end
  
  desc 'run functional tests'
  task :functional do
    system 'ruby -wd ./test/functional/suite.rb'
  end
  
  desc 'run all scanner tests'
  task :scanners do
    system 'ruby -wd ./test/scanners/suite.rb'
  end
  
  desc 'clean test output files'
  task :clean do
    for file in Dir['test/scanners/**/*.actual.*']
      rm file
    end
  end
end

task :test => %w( test:functional test:scanners )
task :samples => 'test:samples'