summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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