Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
2e0519de
Commit
2e0519de
authored
Nov 26, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3036 from zzak/remove-mrbtest_irep
Remove mrbtest irep
parents
6dbc314a
1ef2faf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
mrbgems/mruby-test/init_mrbtest.c
mrbgems/mruby-test/init_mrbtest.c
+0
-2
mrbgems/mruby-test/mrbgem.rake
mrbgems/mruby-test/mrbgem.rake
+5
-5
No files found.
mrbgems/mruby-test/init_mrbtest.c
View file @
2e0519de
...
...
@@ -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
);
#ifndef DISABLE_GEMS
...
...
mrbgems/mruby-test/mrbgem.rake
View file @
2e0519de
...
...
@@ -6,9 +6,10 @@ MRuby::Gem::Specification.new('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"
)
...
...
@@ -26,7 +27,7 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
mrbtest_objs
<<
assert_lib
file
assert_lib
=>
assert_c
file
assert_c
=>
[
build
.
mrbcfile
,
assert_rb
]
do
|
t
|
file
assert_c
=>
assert_rb
do
|
t
|
open
(
t
.
name
,
'w'
)
do
|
f
|
mrbc
.
run
f
,
assert_rb
,
'mrbtest_assert_irep'
end
...
...
@@ -40,7 +41,7 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
dep_list
=
build
.
gems
.
tsort_dependencies
(
g
.
test_dependencies
,
gem_table
).
select
(
&
:generate_functions
)
file
test_rbobj
=>
g
.
test_rbireps
file
g
.
test_rbireps
=>
[
g
.
test_rbfiles
].
flatten
+
[
File
.
join
(
g
.
dir
,
'mrbgem.rake'
),
g
.
build
.
mrbcfile
,
"
#{
MRUBY_ROOT
}
/tasks/mrbgem_spec.rake"
]
do
|
t
|
file
g
.
test_rbireps
=>
[
g
.
test_rbfiles
].
flatten
do
|
t
|
FileUtils
.
mkdir_p
File
.
dirname
(
t
.
name
)
open
(
t
.
name
,
'w'
)
do
|
f
|
g
.
print_gem_test_header
(
f
)
...
...
@@ -146,7 +147,7 @@ MRuby::Gem::Specification.new('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::Gem::Specification.new('mruby-test') do |spec|
f
.
puts
%Q[ */]
f
.
puts
%Q[]
f
.
puts
IO
.
read
(
init
)
mrbc
.
run
f
,
mrbs
,
'mrbtest_irep'
build
.
gems
.
each
do
|
g
|
f
.
puts
%Q[void GENERATED_TMP_mrb_
#{
g
.
funcname
}
_gem_test(mrb_state *mrb);]
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment