summaryrefslogtreecommitdiffhomepage
path: root/test/bintest.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-03-07 22:16:47 +0900
committerKOBAYASHI Shuji <[email protected]>2019-03-07 22:16:47 +0900
commit968e3b94005e8b7f8882c274259cba6f81345ad9 (patch)
tree87fc81763b3f75f15fffca664951b9b3fede844a /test/bintest.rb
parentbf922c9f7a484621e43faf8e26db491a33422d63 (diff)
downloadmruby-968e3b94005e8b7f8882c274259cba6f81345ad9.tar.gz
mruby-968e3b94005e8b7f8882c274259cba6f81345ad9.zip
Set `GEMNAME` on bintest
Diffstat (limited to 'test/bintest.rb')
-rw-r--r--test/bintest.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bintest.rb b/test/bintest.rb
index b62419d44..d0126cfa0 100644
--- a/test/bintest.rb
+++ b/test/bintest.rb
@@ -1,6 +1,8 @@
$:.unshift File.dirname(File.dirname(File.expand_path(__FILE__)))
require 'test/assert.rb'
+GEMNAME = ""
+
def cmd(s)
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|bccwin/
@@ -30,6 +32,7 @@ ARGV.each do |gem|
end
Dir["#{gem}/bintest/**/*.rb"].each do |file|
+ GEMNAME.replace(File.basename(gem))
load file
end
end