diff options
| author | Carson McDonald <[email protected]> | 2013-01-29 21:54:03 -0500 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-01-29 22:03:29 -0500 |
| commit | 79f802365f02c242fd104664e97431bd8f18001c (patch) | |
| tree | 3cd9bafaea58e0a717e1c971fa2e40a46c745079 /tasks/mrbgem_spec.rake | |
| parent | e43216c45d537b456e8225b66e0c10b0703b31a0 (diff) | |
| download | mruby-79f802365f02c242fd104664e97431bd8f18001c.tar.gz mruby-79f802365f02c242fd104664e97431bd8f18001c.zip | |
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 |
