Changeset 277
- Timestamp:
- 10/29/06 07:29:00 (2 years ago)
- Files:
-
- version_0/Rakefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/Rakefile
r276 r277 33 33 34 34 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. 35 39 specwin32 = eval(File.read("eventmachine-win32.gemspec")) 36 40 specwin32.version = $version … … 108 112 109 113 110 =begin111 # This is used by several rake tasks, that parameterize the112 # behavior so we can test the extension and non-extension113 # 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::TestRunner119 120 $eventmachine_library = libr121 $LOAD_PATH.unshift('tests')122 $stderr.puts "Checking for test cases:" if t.verbose123 Dir['tests/test_*.rb'].each do |testcase|124 $stderr.puts "\t#{testcase}" if t.verbose125 load testcase126 end127 128 suite = Test::Unit::TestSuite.new($name)129 130 ObjectSpace.each_object(Class) do |testcase|131 suite << testcase.suite if testcase < Test::Unit::TestCase132 end133 134 runner.run(suite)135 }136 =end137 114 138 115 139 116 # This is used by several rake tasks, that parameterize the 140 # behavior so we can test the extension and non-extension141 # versions with the same tests.117 # behavior so we can use the same tests to test both the 118 # extension and non-extension versions. 142 119 def run_tests t, libr, test_filename_filter="test_*.rb" 143 120 require 'test/unit/testsuite'