root/trunk/tests/testem.rb

Revision 788, 0.6 kB (checked in by raggi, 9 months ago)

Merge of branches/raggi
Most notable work and patches by Aman Gupta, Roger Pack, and James Tucker.
Patches / Tickets also submitted by: Jeremy Evans, aanand, darix, mmmurf,
danielaquino, macournoyer.

  • Moved docs into docs/ dir
  • Major refactor of rakefile, added generic rakefile helpers in tasks
  • Added example CPP build rakefile in tasks/cpp.rake
  • Moved rake tests out to tasks/tests.rake
  • Added svn ignores where appropriate
  • Fixed jruby build on older java platforms
  • Gem now builds from Rakefile rather than directly via extconf
  • Gem unified for jruby, C++ and pure ruby.
  • Correction for pure C++ build, removing ruby dependency
  • Fix for CYGWIN builds on ipv6
  • Major refactor for extconf.rb
  • Working mingw builds
  • extconf optionally uses pkg_config over manual configuration
  • extconf builds for 1.9 on any system that has 1.9
  • extconf no longer links pthread explicitly
  • looks for kqueue on all *nix systems
  • better error output on std::runtime_error, now says where it came from
  • Fixed some tests on jruby
  • Added test for general send_data flaw, required for a bugfix in jruby build
  • Added timeout to epoll tests
  • Added fixes for java reactor ruby api
  • Small addition of some docs in httpclient.rb and httpcli2.rb
  • Some refactor and fixes in smtpserver.rb
  • Added parenthesis where possible to avoid excess ruby warnings
  • Refactor of $eventmachine_library logic for accuracy and maintenance, jruby
  • EM::start_server now supports unix sockets
  • EM::connect now supports unix sockets
  • EM::defer @threadqueue now handled more gracefully
  • Added better messages on exceptions raised
  • Fix edge case in timer fires
  • Explicitly require buftok.rb
  • Add protocols to autoload, rather than require them all immediately
  • Fix a bug in pr_eventmachine for outbound_q
  • Refactors to take some of the use of defer out of tests.
  • Fixes in EM.defer under start/stop conditions. Reduced scope of threads.
  • Property svn:keywords set to Id
Line 
1 # $Id$
2
3 require 'test/unit'
4
5 module EmTestRunner
6   @em_root = File.expand_path(File.dirname(__FILE__) + '/../')
7   @lib_dir = File.join(@em_root, 'lib')
8   @ext_dir = File.join(@em_root, 'ext')
9   @java_dir = File.join(@em_root, 'java')
10
11   def self.run(glob = 'test_*.rb')
12     $:.unshift(@lib_dir)
13     $:.unshift(@ext_dir)
14     $:.unshift(@java_dir)
15
16     case glob
17     when Array
18       files = glob
19     else
20       files = Dir[File.dirname(__FILE__) + '/' + glob]
21     end
22
23     files.each do |tc|
24       require tc
25     end
26   end
27 end
28
29 if __FILE__ == $0
30   EmTestRunner.run
31 end
Note: See TracBrowser for help on using the browser.