summaryrefslogtreecommitdiffhomepage
path: root/test/bintest.rb
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2015-09-30 15:42:27 +0900
committerYasuhiro Matsumoto <[email protected]>2015-09-30 16:13:02 +0900
commit545d649eff73021d515f7a96841b363b0001e9d9 (patch)
treee7010366188052a89cc659426fc4bbf55367f7a8 /test/bintest.rb
parent81ec5f5dc04a45d869ebf393d818cb8d08e0ffbf (diff)
downloadmruby-545d649eff73021d515f7a96841b363b0001e9d9.tar.gz
mruby-545d649eff73021d515f7a96841b363b0001e9d9.zip
fix tests on windows.
'bin/mruby' not work on windows. so correct command name and quoted arguments.
Diffstat (limited to 'test/bintest.rb')
-rw-r--r--test/bintest.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bintest.rb b/test/bintest.rb
index 49990abb9..e6d122047 100644
--- a/test/bintest.rb
+++ b/test/bintest.rb
@@ -1,6 +1,14 @@
$:.unshift File.dirname(File.dirname(File.expand_path(__FILE__)))
require 'test/assert.rb'
+def cmd(s)
+ ENV['SHELL'] ? "bin/#{s}" : "bin\\#{s}.exe"
+end
+
+def shellquote(s)
+ ENV['SHELL'] ? "'#{s}'" : "\"#{s}\""
+end
+
ARGV.each do |gem|
Dir["#{gem}/bintest/**/*.rb"].each do |file|
load file