Sha256: 3d1f1d0446f17b0f147e4b81dd72389371ae2e68ce96c94b2f2b58b3d846db66
Contents?: true
Size: 977 Bytes
Versions: 5
Compression:
Stored size: 977 Bytes
Contents
require 'test/unit' require 'rbconfig' class RiceTest < Test::Unit::TestCase # 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_vm_unittest run_external_test("./vm_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
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
rice-1.5.2 | test/test_rice.rb |
keyme-rice-1.5.1.keyme1 | test/test_rice.rb |
keyme-rice-1.5.1.keyme | test/test_rice.rb |
rice-1.5.1 | test/test_rice.rb |
rice-1.5.0 | test/test_rice.rb |