Unverified Commit 351614bb authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4059 from take-cheeze/parallel_tests

Run tests parallelly for each target.
parents 864a998c eaf463ad
......@@ -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"
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment