From: Kevin Clark Date: Wed, 18 Jun 2008 00:57:06 +0000 (+0000) Subject: Make `rake` run the ruby tests in test/rb as well as the new specs X-Git-Tag: 0.2.0~636 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c2a07b19ef333a03e6b6542a16ff39326b15423d;p=common%2Fthrift.git Make `rake` run the ruby tests in test/rb as well as the new specs git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668913 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile index 017ab9bf..a41b89b7 100644 --- a/lib/rb/Rakefile +++ b/lib/rb/Rakefile @@ -2,9 +2,16 @@ require 'rubygems' require 'rake' require 'spec/rake/spectask' -task :default => :spec +task :default => [:spec, :test] Spec::Rake::SpecTask.new("spec") do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = ['--color'] end + +task :test do + fork do + exec 'make', '-C', File.dirname(__FILE__) + "/../../test/rb" + end + Process.wait +end