summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-10-01 19:21:57 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-10-01 19:21:57 +0900
commitbcd10c710c665b0e4507a3372a2626baccbc4b65 (patch)
treee7010366188052a89cc659426fc4bbf55367f7a8 /test
parent81ec5f5dc04a45d869ebf393d818cb8d08e0ffbf (diff)
parent545d649eff73021d515f7a96841b363b0001e9d9 (diff)
downloadmruby-bcd10c710c665b0e4507a3372a2626baccbc4b65.tar.gz
mruby-bcd10c710c665b0e4507a3372a2626baccbc4b65.zip
Merge pull request #2973 from mattn/fix-windows-tests
fix tests on windows.
Diffstat (limited to 'test')
-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