summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-03-08 22:00:06 +0900
committerKOBAYASHI Shuji <[email protected]>2019-03-08 22:00:06 +0900
commit441c964716a0279f7f37cad06978d6261a1651db (patch)
tree267ad5cf56786b5526fbd8ec1dddf32c9e164519 /Rakefile
parent4fb3edce115456df96eb5f9191582ed73c5c9ef4 (diff)
downloadmruby-441c964716a0279f7f37cad06978d6261a1651db.tar.gz
mruby-441c964716a0279f7f37cad06978d6261a1651db.zip
Allow `enable_bintest` without `enable_test` in build config
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Rakefile b/Rakefile
index 6c160a5ed..533153290 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"