[DRE-commits] [SCM] ruby-innate.git branch, master, updated. upstream/2012.03-8-g0ee882f

Cédric Boutillier cedric.boutillier at gmail.com
Mon May 28 23:52:01 UTC 2012


The following commit has been merged in the master branch:
commit 3f7b595e6fa885289a460cf712de24151fcfa94f
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Tue May 29 01:17:47 2012 +0200

    Use ruby-tests.rake to run tests

diff --git a/tasks/bacon.rake b/debian/ruby-tests.rake
similarity index 88%
copy from tasks/bacon.rake
copy to debian/ruby-tests.rake
index ce6eacd..887629e 100644
--- a/tasks/bacon.rake
+++ b/debian/ruby-tests.rake
@@ -1,12 +1,15 @@
 require 'fileutils'
 
+PROJECT_SPECS = FileList['spec/{innate,example}/**/*.rb'].exclude('spec/innate/cache/common.rb')
+
 desc 'Run all bacon specs with pretty output'
 task :bacon do
   require 'open3'
   require 'scanf'
   require 'matrix'
 
-  specs = PROJECT_SPECS
+  #specs = PROJECT_SPECS
+  specs =  FileList['spec/{innate,example}/**/*.rb'].exclude('spec/innate/cache/common.rb')
 
   some_failed = false
   specs_size = specs.size
@@ -66,3 +69,5 @@ task :bacon do
   puts(total_color % (spec_format % totals.to_a))
   exit 1 if some_failed
 end
+
+task :default => :bacon
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index eac5ce6..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")

-- 
ruby-innate.git



More information about the Pkg-ruby-extras-commits mailing list