diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-06-22 12:02:09 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-22 12:02:09 +0900 |
| commit | 351614bbddb5f612ecf9572e975e78e058d2bf11 (patch) | |
| tree | 47bc7607541da412636d5098e4e3587a8b03ec0a /Rakefile | |
| parent | 864a998c240504105c04716c306731dc23beab08 (diff) | |
| parent | eaf463ada3d28cfb62f59137e59246827bb287e7 (diff) | |
| download | mruby-351614bbddb5f612ecf9572e975e78e058d2bf11.tar.gz mruby-351614bbddb5f612ecf9572e975e78e058d2bf11.zip | |
Merge pull request #4059 from take-cheeze/parallel_tests
Run tests parallelly for each target.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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" |
