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
acd04ad5
Unverified
Commit
acd04ad5
authored
Jun 21, 2018
by
take-cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support verbose mode in bintest.
parent
fd9617ca
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 @
acd04ad5
...
...
@@ -293,10 +293,14 @@ 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
run_bintest
if
bintest_enabled?
end
...
...
@@ -304,7 +308,7 @@ EOS
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 @
acd04ad5
...
...
@@ -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