Allow `enable_bintest` without `enable_test` in build config
MODIFY
Rakefile
Rakefile
@@ -123,21 +123,22 @@ end
desc "run all mruby tests"
task :test
MRuby.each_target do
- next unless test_enabled?
-
+ if test_enabled?
t = :"test_#{self.name}"
task t => ["all"] do
run_test
end
task :test => t
+ end
- next unless bintest_enabled?
+ if bintest_enabled?
t = :"bintest_#{self.name}"
task t => ["all"] do
run_bintest
end
task :test => t
end
+end
desc "clean all built and in-repo installed artifacts"
task :clean do

MODIFY
lib/mruby/gem.rb
lib/mruby/gem.rb
@@ -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)

Allow `enable_bintest` without `enable_test` in build config