run enabled gem's bintest only

This commit is contained in:
take_cheeze
2014-03-03 16:53:26 +09:00
parent 369c6c3649
commit cfa7889996
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -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
+4 -2
View File
@@ -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'