summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
blob: 6a31bd726815bb4f0e779514bee9967725d8c403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
task default: %w[encoding yaml return_code]
$failure = 0
task :encoding do
  begin
    ruby 'tests/encoding.rb'
  rescue Exception => msg
    puts msg
    $failure += 1
  end
end
task :yaml do
  begin
    ruby 'tests/yaml.rb'
  rescue Exception => msg
    puts msg
    $failure += 1
  end
end
task :return_code do
  if $failure != 0
    raise "Failed #{$failure} tests!!"
  end
end