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

Merge pull request #4319 from shuujii/allow-enable_bintest-without-enable_test

Allow `enable_bintest` without `enable_test` in build config
parents 4fb3edce 441c9647
...@@ -123,20 +123,21 @@ end ...@@ -123,20 +123,21 @@ end
desc "run all mruby tests" desc "run all mruby tests"
task :test task :test
MRuby.each_target do MRuby.each_target do
next unless test_enabled? if test_enabled?
t = :"test_#{self.name}"
t = :"test_#{self.name}" task t => ["all"] do
task t => ["all"] do run_test
run_test end
task :test => t
end end
task :test => t
next unless bintest_enabled? if bintest_enabled?
t = :"bintest_#{self.name}" t = :"bintest_#{self.name}"
task t => ["all"] do task t => ["all"] do
run_bintest run_bintest
end
task :test => t
end end
task :test => t
end end
desc "clean all built and in-repo installed artifacts" desc "clean all built and in-repo installed artifacts"
......
...@@ -112,7 +112,7 @@ module MRuby ...@@ -112,7 +112,7 @@ module MRuby
end end
def add_test_dependency(*args) def add_test_dependency(*args)
add_dependency(*args) if build.test_enabled? add_dependency(*args) if build.test_enabled? || build.bintest_enabled?
end end
def add_conflict(name, *req) def add_conflict(name, *req)
......
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