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
d7960bf2
Commit
d7960bf2
authored
Feb 10, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
resolve conflict in travis_config.rb
parents
5519bd69
05fb139d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
5 deletions
+48
-5
build_config.rb
build_config.rb
+3
-0
mrbgems/mruby-bin-mirb/bintest/mirb.rb
mrbgems/mruby-bin-mirb/bintest/mirb.rb
+12
-0
mrbgems/mruby-bin-mruby/bintest/mruby.rb
mrbgems/mruby-bin-mruby/bintest/mruby.rb
+13
-0
tasks/mruby_build.rake
tasks/mruby_build.rake
+7
-2
test/assert.rb
test/assert.rb
+3
-2
test/bintest.rb
test/bintest.rb
+8
-0
travis_config.rb
travis_config.rb
+2
-1
No files found.
build_config.rb
View file @
d7960bf2
...
@@ -78,6 +78,9 @@ MRuby::Build.new do |conf|
...
@@ -78,6 +78,9 @@ MRuby::Build.new do |conf|
# file separetor
# file separetor
# conf.file_separator = '/'
# conf.file_separator = '/'
# bintest
# conf.enable_bintest = true
end
end
# Define cross build settings
# Define cross build settings
...
...
mrbgems/mruby-bin-mirb/bintest/mirb.rb
0 → 100644
View file @
d7960bf2
require
'open3'
assert
(
'mirb normal operations'
)
do
o
,
s
=
Open3
.
capture2
(
'bin/mirb'
,
:stdin_data
=>
"a=1
\n
b=2
\n
a+b
\n
"
)
assert_true
o
.
include?
(
'=> 3'
)
assert_true
o
.
include?
(
'=> 2'
)
end
assert
(
'regression for #1563'
)
do
o
,
s
=
Open3
.
capture2
(
'bin/mirb'
,
:stdin_data
=>
"a=1;b=2;c=3
\n
b
\n
c"
)
assert_true
o
.
include?
(
'=> 3'
)
end
mrbgems/mruby-bin-mruby/bintest/mruby.rb
0 → 100644
View file @
d7960bf2
assert
(
'regression for #1564'
)
do
o
=
`bin/mruby -e '<<' 2>&1`
assert_equal
o
,
"-e:1:2: syntax error, unexpected tLSHFT
\n
"
o
=
`bin/mruby -e '<<-' 2>&1`
assert_equal
o
,
"-e:1:3: syntax error, unexpected tLSHFT
\n
"
end
assert
(
'regression for #1572'
)
do
system
"echo 'p
\"
ok
\"
' > /tmp/1572.rb"
system
"bin/mrbc -g -o /tmp/1572.mrb /tmp/1572.rb"
o
=
`bin/mruby -b /tmp/1572.mrb`
.
strip
assert_equal
o
,
'"ok"'
end
tasks/mruby_build.rake
View file @
d7960bf2
...
@@ -43,7 +43,7 @@ module MRuby
...
@@ -43,7 +43,7 @@ module MRuby
end
end
include
Rake
::
DSL
include
Rake
::
DSL
include
LoadGems
include
LoadGems
attr_accessor
:name
,
:bins
,
:exts
,
:file_separator
,
:build_dir
,
:gem_clone_dir
attr_accessor
:name
,
:bins
,
:exts
,
:file_separator
,
:build_dir
,
:gem_clone_dir
,
:enable_bintest
attr_reader
:libmruby
,
:gems
attr_reader
:libmruby
,
:gems
COMPILERS
=
%w(cc cxx objc asm)
COMPILERS
=
%w(cc cxx objc asm)
...
@@ -176,6 +176,11 @@ module MRuby
...
@@ -176,6 +176,11 @@ module MRuby
mrbtest
=
exefile
(
"
#{
build_dir
}
/test/mrbtest"
)
mrbtest
=
exefile
(
"
#{
build_dir
}
/test/mrbtest"
)
sh
"
#{
filename
mrbtest
.
relative_path
}#{
$verbose
?
' -v'
:
''
}
"
sh
"
#{
filename
mrbtest
.
relative_path
}#{
$verbose
?
' -v'
:
''
}
"
puts
puts
run_bintest
if
@enable_bintest
end
def
run_bintest
sh
"ruby test/bintest.rb"
end
end
def
print_build_summary
def
print_build_summary
...
...
test/assert.rb
View file @
d7960bf2
...
@@ -9,10 +9,11 @@ def t_print(*args)
...
@@ -9,10 +9,11 @@ def t_print(*args)
i
=
0
i
=
0
len
=
args
.
size
len
=
args
.
size
while
i
<
len
while
i
<
len
str
=
args
[
i
].
to_s
begin
begin
__printstr__
args
[
i
].
to_s
__printstr__
str
rescue
NoMethodError
rescue
NoMethodError
__t_printstr__
args
[
i
].
to_s
__t_printstr__
str
rescue
print
str
end
end
i
+=
1
i
+=
1
end
end
...
...
test/bintest.rb
0 → 100644
View file @
d7960bf2
$:
.
unshift
File
.
dirname
(
File
.
dirname
(
File
.
expand_path
(
__FILE__
)))
require
'test/assert.rb'
Dir
[
'mrbgems/**/bintest/*.rb'
].
each
do
|
file
|
load
file
end
load
'test/report.rb'
travis_config.rb
View file @
d7960bf2
...
@@ -12,5 +12,6 @@ MRuby::Build.new do |conf|
...
@@ -12,5 +12,6 @@ MRuby::Build.new do |conf|
# include all core GEMs
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
gembox
'full-core'
conf
.
cc
.
defines
+=
%w(MRB_GC_FIXED_ARENA)
conf
.
cc
.
defines
=
%w(MRB_DEBUG MRB_GC_FIXED_ARENA)
conf
.
enable_bintest
=
true
end
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