Run tests parallelly for each target.

This commit is contained in:
take-cheeze
2018-06-22 11:43:14 +09:00
parent 3671404391
commit eaf463ada3
2 changed files with 14 additions and 4 deletions
+14 -3
View File
@@ -118,10 +118,21 @@ task :all => depfiles do
end
desc "run all mruby tests"
task :test => ["all"] do
MRuby.each_target do
run_test if test_enabled?
MRuby.each_target do
next unless test_enabled?
t = :"test_#{self.name}"
task t => ["all"] do
run_test
end
task :test => t
next unless bintest_enabled?
t = :"bintest_#{self.name}"
task t => ["all"] do
run_bintest
end
task :test => t
end
desc "clean all built and in-repo installed artifacts"
-1
View File
@@ -298,7 +298,6 @@ EOS
mrbtest = exefile("#{build_dir}/bin/mrbtest")
sh "#{filename mrbtest.relative_path}#{$verbose ? ' -v' : ''}"
puts
run_bintest if bintest_enabled?
end
def run_bintest