Sha256: 24620606743e170cb480344c7bde50eee01e6dc5f0bd4eee33d1ca547ae41804
Contents?: true
Size: 934 Bytes
Versions: 8
Compression:
Stored size: 934 Bytes
Contents
require 'rubygems' gem 'minitest' require 'minitest/autorun' require 'rbconfig' class RiceTest < Minitest::Test # TODO: probably a better way to find this out... VERBOSE = ARGV.include?('-v') EXEEXT = RbConfig::CONFIG['EXEEXT'] RUBY = RbConfig::CONFIG['RUBY_INSTALL_NAME'] def test_unittest run_external_test("./unittest#{EXEEXT}") end def test_multiple_extensions run_external_test("#{RUBY} test_multiple_extensions.rb") end def test_multiple_extensions_with_inheritance run_external_test("#{RUBY} test_multiple_extensions_with_inheritance.rb") end def test_multiple_extensions_same_class run_external_test("#{RUBY} test_multiple_extensions_same_class.rb") end def run_external_test(executable) if VERBOSE then system(executable) else result = `#{executable}` if $? != 0 then puts result end end raise "Error: $?" if $? != 0 end end
Version data entries
8 entries across 8 versions & 2 rubygems