Changeset 277

Show
Ignore:
Timestamp:
10/29/06 07:29:00 (2 years ago)
Author:
blackhedd
Message:

build notes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/Rakefile

    r276 r277  
    3333 
    3434 
     35# To build a binary gem for win32, first build rubyeventmachine.so 
     36# using VC6 outside of the build tree (the normal way: ruby extconf.rb, 
     37# and then nmake). Then copy rubyeventmachine.so into the lib directory, 
     38# and run rake gemwin32. 
    3539specwin32 = eval(File.read("eventmachine-win32.gemspec")) 
    3640specwin32.version = $version 
     
    108112 
    109113 
    110 =begin 
    111 # This is used by several rake tasks, that parameterize the 
    112 # behavior so we can test the extension and non-extension 
    113 # versions with the same tests. 
    114 test_runner = proc {|t, libr| 
    115   require 'test/unit/testsuite' 
    116   require 'test/unit/ui/console/testrunner' 
    117  
    118   runner = Test::Unit::UI::Console::TestRunner 
    119  
    120   $eventmachine_library = libr 
    121   $LOAD_PATH.unshift('tests') 
    122   $stderr.puts "Checking for test cases:" if t.verbose 
    123   Dir['tests/test_*.rb'].each do |testcase| 
    124     $stderr.puts "\t#{testcase}" if t.verbose 
    125     load testcase 
    126   end 
    127  
    128   suite = Test::Unit::TestSuite.new($name) 
    129  
    130   ObjectSpace.each_object(Class) do |testcase| 
    131     suite << testcase.suite if testcase < Test::Unit::TestCase 
    132   end 
    133  
    134   runner.run(suite) 
    135 } 
    136 =end 
    137114 
    138115 
    139116# This is used by several rake tasks, that parameterize the 
    140 # behavior so we can test the extension and non-extension 
    141 # versions with the same tests. 
     117# behavior so we can use the same tests to test both the 
     118# extension and non-extension versions. 
    142119def run_tests t, libr, test_filename_filter="test_*.rb" 
    143120  require 'test/unit/testsuite'