Sha256: 4166e322905109235d275b7c78654d2660d9e6002c0f68eb9204fb73d4f59ef2

Contents?: true

Size: 577 Bytes

Versions: 23

Compression:

Stored size: 577 Bytes

Contents

$:.unshift File.dirname(File.dirname(File.expand_path(__FILE__)))
require 'test/assert.rb'

def cmd(s)
  case RbConfig::CONFIG['host_os']
  when /mswin(?!ce)|mingw|bccwin/
    "bin\\#{s}.exe"
  else
    "bin/#{s}"
  end
end

def shellquote(s)
  case RbConfig::CONFIG['host_os']
  when /mswin(?!ce)|mingw|bccwin/
    "\"#{s}\""
  else
    "'#{s}'"
  end
end

ARGV.each do |gem|
  case RbConfig::CONFIG['host_os']
  when /mswin(?!ce)|mingw|bccwin/
    gem = gem.gsub('\\', '/')
  end

  Dir["#{gem}/bintest/**/*.rb"].each do |file|
    load file
  end
end

load 'test/report.rb'

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
script_core-0.0.3 ext/enterprise_script_service/mruby/test/bintest.rb
script_core-0.0.2 ext/enterprise_script_service/mruby/test/bintest.rb
script_core-0.0.1 ext/enterprise_script_service/mruby/test/bintest.rb