summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authortake-cheeze <[email protected]>2018-06-22 11:43:14 +0900
committertake-cheeze <[email protected]>2018-06-22 11:43:14 +0900
commiteaf463ada3d28cfb62f59137e59246827bb287e7 (patch)
treee556ed98360efc2133c3e02c2d94ef0aa0165b8c /Rakefile
parent36714043912372c11cf361fb2a37130be6b853d7 (diff)
downloadmruby-eaf463ada3d28cfb62f59137e59246827bb287e7.tar.gz
mruby-eaf463ada3d28cfb62f59137e59246827bb287e7.zip
Run tests parallelly for each target.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 14 insertions, 3 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"