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
ade7185a
Unverified
Commit
ade7185a
authored
Sep 05, 2018
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Sep 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4055 from take-cheeze/verbose_bintest
Support verbose mode in bintest.
parents
2a9525ca
acd04ad5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
lib/mruby/build.rb
lib/mruby/build.rb
+6
-2
test/bintest.rb
test/bintest.rb
+4
-0
No files found.
lib/mruby/build.rb
View file @
ade7185a
...
...
@@ -293,17 +293,21 @@ EOS
@build_mrbtest_lib_only
end
def
verbose_flag
$verbose
?
' -v'
:
''
end
def
run_test
puts
">>> Test
#{
name
}
<<<"
mrbtest
=
exefile
(
"
#{
build_dir
}
/bin/mrbtest"
)
sh
"
#{
filename
mrbtest
.
relative_path
}#{
$verbose
?
' -v'
:
''
}
"
sh
"
#{
filename
mrbtest
.
relative_path
}#{
verbose_flag
}
"
puts
end
def
run_bintest
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
#{
verbose_flag
}
#{
targets
.
join
' '
}
"
end
def
print_build_summary
...
...
test/bintest.rb
View file @
ade7185a
...
...
@@ -20,6 +20,10 @@ def shellquote(s)
end
ARGV
.
each
do
|
gem
|
case
gem
when
'-v'
;
$mrbtest_verbose
=
true
end
case
RbConfig
::
CONFIG
[
'host_os'
]
when
/mswin(?!ce)|mingw|bccwin/
gem
=
gem
.
gsub
(
'\\'
,
'/'
)
...
...
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