From 5c4273f944b538bc24ed98c52991ea8bf9044654 Mon Sep 17 00:00:00 2001 From: Chris Reuter Date: Thu, 21 Oct 2021 21:33:17 -0400 Subject: Added testing support for cross-MinGW builds. This adds a build_config that will cross-build a Windows executable using the MinGW cross-compiler and will also run the unit (i.e. 'rake test') using Wine. For this to work, I made some modifications to the underlying test scripts as well as some minor changes to a couple of the tests themselves. --- mrbgems/mruby-bin-mruby/bintest/mruby.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrbgems/mruby-bin-mruby') diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index bc25f18c1..a626a13cd 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -2,7 +2,7 @@ require 'tempfile' require 'open3' def assert_mruby(exp_out, exp_err, exp_success, args) - out, err, stat = Open3.capture3(cmd("mruby"), *args) + out, err, stat = Open3.capture3( *(cmd_list("mruby") + args)) assert "assert_mruby" do assert_operator(exp_out, :===, out, "standard output") assert_operator(exp_err, :===, err, "standard error") @@ -87,7 +87,7 @@ assert('mruby -e option (no code specified)') do end assert('mruby -h option') do - assert_mruby(/\AUsage: #{Regexp.escape cmd("mruby")} .*/m, "", true, %w[-h]) + assert_mruby(/\AUsage: #{Regexp.escape cmd_bin("mruby")} .*/m, "", true, %w[-h]) end assert('mruby -r option') do -- cgit v1.2.3