diff options
| author | Zachary Scott <[email protected]> | 2015-08-22 10:21:52 -0400 |
|---|---|---|
| committer | Zachary Scott <[email protected]> | 2015-08-22 10:21:52 -0400 |
| commit | 133d57cb0d989b956bac899ccc5171351d15fc06 (patch) | |
| tree | 772975422da7d0bb9d23ec44746677a2dd64869b /Rakefile | |
| parent | c7d0f8ebcbcd21fbe624bfd1e9b43a8037703a6d (diff) | |
| download | mruby-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-- | Rakefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |
