From eaf463ada3d28cfb62f59137e59246827bb287e7 Mon Sep 17 00:00:00 2001 From: take-cheeze Date: Fri, 22 Jun 2018 11:43:14 +0900 Subject: Run tests parallelly for each target. --- Rakefile | 17 ++++++++++++++--- lib/mruby/build.rb | 1 - 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 2f6fa056f..d2ad9044c 100644 --- a/Rakefile +++ b/Rakefile @@ -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" diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index 57bd9c51e..83c7404b8 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -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 -- cgit v1.2.3