From 545d649eff73021d515f7a96841b363b0001e9d9 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 30 Sep 2015 15:42:27 +0900 Subject: fix tests on windows. 'bin/mruby' not work on windows. so correct command name and quoted arguments. --- test/bintest.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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 -- cgit v1.2.3