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
39bbdd5f
Commit
39bbdd5f
authored
Jun 06, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bintest for `mrbc`.
parent
7f870f60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
bintest/mrbc.rb
bintest/mrbc.rb
+12
-0
tasks/mruby_build.rake
tasks/mruby_build.rake
+1
-0
No files found.
bintest/mrbc.rb
0 → 100644
View file @
39bbdd5f
require
'tempfile'
assert
(
'Compiling multiple files without new line in last line. #2361'
)
do
a
,
b
,
out
=
Tempfile
.
new
(
'a.rb'
),
Tempfile
.
new
(
'b.rb'
),
Tempfile
.
new
(
'out.mrb'
)
a
.
write
(
'module A; end'
)
a
.
flush
b
.
write
(
'module B; end'
)
b
.
flush
result
=
`bin/mrbc -c -o
#{
out
.
path
}
#{
a
.
path
}
#{
b
.
path
}
2>&1`
assert_equal
"bin/mrbc:
#{
a
.
path
}
:Syntax OK"
,
result
.
chomp
assert_equal
0
,
$?
.
exitstatus
end
tasks/mruby_build.rake
View file @
39bbdd5f
...
@@ -209,6 +209,7 @@ module MRuby
...
@@ -209,6 +209,7 @@ module MRuby
def
run_bintest
def
run_bintest
targets
=
@gems
.
select
{
|
v
|
File
.
directory?
"
#{
v
.
dir
}
/bintest"
}.
map
{
|
v
|
filename
v
.
dir
}
targets
=
@gems
.
select
{
|
v
|
File
.
directory?
"
#{
v
.
dir
}
/bintest"
}.
map
{
|
v
|
filename
v
.
dir
}
targets
<<
filename
(
"."
)
if
File
.
directory?
"./bintest"
sh
"ruby test/bintest.rb
#{
targets
.
join
' '
}
"
sh
"ruby test/bintest.rb
#{
targets
.
join
' '
}
"
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