summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorZachary Scott <[email protected]>2015-08-22 10:21:52 -0400
committerZachary Scott <[email protected]>2015-08-22 10:21:52 -0400
commit133d57cb0d989b956bac899ccc5171351d15fc06 (patch)
tree772975422da7d0bb9d23ec44746677a2dd64869b /Rakefile
parentc7d0f8ebcbcd21fbe624bfd1e9b43a8037703a6d (diff)
downloadmruby-133d57cb0d989b956bac899ccc5171351d15fc06.tar.gz
mruby-133d57cb0d989b956bac899ccc5171351d15fc06.zip
Add mruby-test build config and update :test task to use mrbgem binary
Removed old mrbgems_test.rake which was merged into mrbgem spec
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 89dab05e7..574c1365a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -26,9 +26,6 @@ load "#{MRUBY_ROOT}/mrblib/mrblib.rake"
load "#{MRUBY_ROOT}/tasks/mrbgems.rake"
load "#{MRUBY_ROOT}/tasks/libmruby.rake"
-load "#{MRUBY_ROOT}/tasks/mrbgems_test.rake"
-load "#{MRUBY_ROOT}/test/mrbtest.rake"
-
load "#{MRUBY_ROOT}/tasks/benchmark.rake"
##############################
@@ -117,9 +114,11 @@ task :all => depfiles do
end
desc "run all mruby tests"
-task :test => ["all"] + MRuby.targets.values.map { |t| t.build_mrbtest_lib_only? ? t.libfile("#{t.build_dir}/test/mrbtest") : t.exefile("#{t.build_dir}/test/mrbtest") } do
+task :test => ["all"] do
MRuby.each_target do
- run_test unless build_mrbtest_lib_only?
+ if gems.find { |v| v.name == 'mruby-test' }
+ run_test unless build_mrbtest_lib_only?
+ end
end
end