mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Adding a serialized test task
Under normal circumstances, `rake -m test` will parallelize not only the build task, but also the test task. With this patch, `rake -m test:run:serial` will parallelize the build tasks, but the test tasks will be done one by one in sequence. The name of the task to be added is as follows: | tasks to be added | corresponding exist tasks | --------------------- | ---------------- | `test:run:serial` | `test:run` | `test:run:serial:bin` | `test:run:bin` | `test:run:serial:lib` | `test:run:lib`
This commit is contained in:
@@ -36,6 +36,21 @@ namespace :test do |test_ns|
|
||||
desc "run command binaries tests"
|
||||
task :bin
|
||||
end
|
||||
|
||||
desc "run all mruby tests serially"
|
||||
task "run:serial" => "build" do
|
||||
Rake::Task["test:run"].prerequisite_tasks.each(&:invoke)
|
||||
end
|
||||
|
||||
desc "run library tests serially"
|
||||
task "run:serial:bin" => "build:bin" do
|
||||
Rake::Task["test:run:lib"].prerequisite_tasks.each(&:invoke)
|
||||
end
|
||||
|
||||
desc "run command binaries tests serially"
|
||||
task "run:serial:lib" => "build:lib" do
|
||||
Rake::Task["test:run:bin"].prerequisite_tasks.each(&:invoke)
|
||||
end
|
||||
end
|
||||
|
||||
MRuby.each_target do |build|
|
||||
|
||||
Reference in New Issue
Block a user