diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-30 05:31:50 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-30 05:31:50 -0800 |
| commit | 7c813a9e15cb64cdaa6c8c47c84839357d6badcd (patch) | |
| tree | 3efb1b479c9b1a68ff0bcea90a6a1a53413cbb74 /tasks/mrbgem_spec.rake | |
| parent | a5fbaf17f78136d52260a90c3a3647b1893e44e2 (diff) | |
| parent | c1ca6621700fcc486daed1209d0a9b0440a985bf (diff) | |
| download | mruby-7c813a9e15cb64cdaa6c8c47c84839357d6badcd.tar.gz mruby-7c813a9e15cb64cdaa6c8c47c84839357d6badcd.zip | |
Merge pull request #802 from carsonmcdonald/mrbgemstestpassargs
Add ability to pass parameters from mrbgem.rake spec into test scripts.
Diffstat (limited to 'tasks/mrbgem_spec.rake')
| -rw-r--r-- | tasks/mrbgem_spec.rake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake index 49e45bbc9..daf4410de 100644 --- a/tasks/mrbgem_spec.rake +++ b/tasks/mrbgem_spec.rake @@ -22,7 +22,7 @@ module MRuby alias :author= :authors= attr_accessor :rbfiles, :objs - attr_accessor :test_objs, :test_rbfiles + attr_accessor :test_objs, :test_rbfiles, :test_args attr_accessor :test_preload attr_block MRuby::Build::COMMANDS @@ -54,6 +54,7 @@ module MRuby objfile(f.relative_path_from(dir).to_s.pathmap("#{build_dir}/%X")) end @test_preload = 'test/assert.rb' + @test_args = {} instance_eval(&@initializer) @@ -140,6 +141,7 @@ module MRuby f.puts %Q[#include "mruby/proc.h"] f.puts %Q[#include "mruby/variable.h"] f.puts %Q[#include "mruby/array.h"] + f.puts %Q[#include "mruby/hash.h"] end end # Specification |
