From 441c964716a0279f7f37cad06978d6261a1651db Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Fri, 8 Mar 2019 22:00:06 +0900 Subject: Allow `enable_bintest` without `enable_test` in build config --- Rakefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'Rakefile') 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" -- cgit v1.2.3