Skip to content
Browse files
Remove mrbtest_irep from mrbtest
If we make the core tests a dependency on the mruby-test gem,
we don't need to worry about maintaining the core test irep alone.
  • Loading branch information
zzak committed Nov 24, 2015
1 parent 625a3fe commit e7a301828f49cace827ef7bb87277ef6468e79bc
Showing 2 changed files with 3 additions and 5 deletions.
@@ -4,7 +4,6 @@
#include "mruby/variable.h"

extern const uint8_t mrbtest_assert_irep[];
extern const uint8_t mrbtest_irep[];

void mrbgemtest_init(mrb_state* mrb);
void mrb_init_test_driver(mrb_state* mrb, mrb_bool verbose);
@@ -24,7 +23,6 @@ mrb_init_mrbtest(mrb_state *mrb)
mrb_init_test_driver(core_test, mrb_test(mrb_gv_get(mrb, mrb_intern_lit(mrb, "$mrbtest_verbose"))));
mrb_load_irep(core_test, mrbtest_assert_irep);
mrb_load_irep(core_test, mrbtest_irep);
mrb_t_pass_result(mrb, core_test);

@@ -6,9 +6,10 @@'mruby-test') do |spec|
build.bins << 'mrbtest'
spec.add_dependency('mruby-compiler', :core => 'mruby-compiler')

spec.test_rbfiles = Dir.glob("#{MRUBY_ROOT}/test/t/*.rb")

clib = "#{build_dir}/mrbtest.c"
mlib = clib.ext(exts.object)
mrbs = Dir.glob("#{MRUBY_ROOT}/test/t/*.rb")
exec = exefile("#{build.build_dir}/bin/mrbtest")

libmruby = libfile("#{build.build_dir}/lib/libmruby")
@@ -146,7 +147,7 @@'mruby-test') do |spec|

init = "#{spec.dir}/init_mrbtest.c"
file mlib => clib
file clib => [build.mrbcfile, init] + mrbs do |t|
file clib => init do |t|
_pp "GEN", "*.rb", "#{clib.relative_path}"
FileUtils.mkdir_p File.dirname(clib)
open(clib, 'w') do |f|
@@ -160,7 +161,6 @@'mruby-test') do |spec|
f.puts %Q[ */]
f.puts %Q[]
f.puts f, mrbs, 'mrbtest_irep'
build.gems.each do |g|
f.puts %Q[void GENERATED_TMP_mrb_#{g.funcname}_gem_test(mrb_state *mrb);]

0 comments on commit e7a3018

Please sign in to comment.