Skip to content
Browse files

run enabled gem's bintest only

  • Loading branch information...
1 parent 369c6c3 commit cfa7889996eacc96a46e88406894d8f063e2912b @take-cheeze take-cheeze committed Mar 3, 2014
Showing with 6 additions and 3 deletions.
  1. +2 −1 tasks/mruby_build.rake
  2. +4 −2 test/bintest.rb
View
3 tasks/mruby_build.rake
@@ -194,7 +194,8 @@ module MRuby
end
def run_bintest
- sh "ruby test/bintest.rb"
+ targets = @gems.select { |v| Dir.exists? "#{v.dir}/bintest" }.map { |v| filename v.dir }
+ sh "ruby test/bintest.rb #{targets.join ' '}"
end
def print_build_summary
View
6 test/bintest.rb
@@ -1,8 +1,10 @@
$:.unshift File.dirname(File.dirname(File.expand_path(__FILE__)))
require 'test/assert.rb'
-Dir['mrbgems/**/bintest/*.rb'].each do |file|
- load file
+ARGV.each do |gem|
+ Dir["#{gem}/bintest/*.rb"].each do |file|
+ load file
+ end
end
load 'test/report.rb'

0 comments on commit cfa7889

Please sign in to comment.
Something went wrong with that request. Please try again.