source: EcnlProtoTool/trunk/mruby-1.2.0/test/bintest.rb@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 485 bytes
Line 
1$:.unshift File.dirname(File.dirname(File.expand_path(__FILE__)))
2require 'test/assert.rb'
3
4def cmd(s)
5 case RbConfig::CONFIG['host_os']
6 when /mswin(?!ce)|mingw|cygwin|bccwin/
7 "bin\\#{s}.exe"
8 else
9 "bin/#{s}"
10 end
11end
12
13def shellquote(s)
14 case RbConfig::CONFIG['host_os']
15 when /mswin(?!ce)|mingw|cygwin|bccwin/
16 "\"#{s}\""
17 else
18 "'#{s}'"
19 end
20end
21
22ARGV.each do |gem|
23 Dir["#{gem}/bintest/**/*.rb"].each do |file|
24 load file
25 end
26end
27
28load 'test/report.rb'
Note: See TracBrowser for help on using the repository browser.