mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4319 from shuujii/allow-enable_bintest-without-enable_test
Allow `enable_bintest` without `enable_test` in build config
This commit is contained in:
@@ -123,20 +123,21 @@ end
|
||||
desc "run all mruby tests"
|
||||
task :test
|
||||
MRuby.each_target do
|
||||
next unless test_enabled?
|
||||
|
||||
t = :"test_#{self.name}"
|
||||
task t => ["all"] do
|
||||
run_test
|
||||
if test_enabled?
|
||||
t = :"test_#{self.name}"
|
||||
task t => ["all"] do
|
||||
run_test
|
||||
end
|
||||
task :test => t
|
||||
end
|
||||
task :test => t
|
||||
|
||||
next unless bintest_enabled?
|
||||
t = :"bintest_#{self.name}"
|
||||
task t => ["all"] do
|
||||
run_bintest
|
||||
if bintest_enabled?
|
||||
t = :"bintest_#{self.name}"
|
||||
task t => ["all"] do
|
||||
run_bintest
|
||||
end
|
||||
task :test => t
|
||||
end
|
||||
task :test => t
|
||||
end
|
||||
|
||||
desc "clean all built and in-repo installed artifacts"
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ module MRuby
|
||||
end
|
||||
|
||||
def add_test_dependency(*args)
|
||||
add_dependency(*args) if build.test_enabled?
|
||||
add_dependency(*args) if build.test_enabled? || build.bintest_enabled?
|
||||
end
|
||||
|
||||
def add_conflict(name, *req)
|
||||
|
||||
Reference in New Issue
Block a user