Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (27 sloc) 0.748 kb
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 32 33
require 'bundler'
Bundler::GemHelper.install_tasks

task :default => ["test:all"]
task "test:all" => ["test:core", "test:extensions"]

require 'rake/testtask'
Rake::TestTask.new("test:core") do |test|
  test.libs << 'test'
  test.pattern = 'test/core/**/*_test.rb'
  test.warning = true
  test.verbose = false
end

Rake::TestTask.new("test:extensions") do |test|
  test.libs << 'test'
  test.pattern = 'test/extensions/*_test.rb'
  test.warning = true
  test.verbose = false
end

#
# Benchmarks

def run_benchmarks(bin)
  Dir["test/benchmark/*.rb"].each do |file|
    puts ">> Running #{file}"
    puts %x[#{bin} #{file}]
  end
end

desc "Run all of them fancy benchmarks, Howard!"
task("test:benchmarks") { run_benchmarks("ruby") }
Something went wrong with that request. Please try again.