Sha256: a6f7890bfafece52d5e078445cd4be65ec7f5d72a8566cb04c3c18cddf9ac201

Contents?: true

Size: 567 Bytes

Versions: 12

Compression:

Stored size: 567 Bytes

Contents

# $Id$

require 'test/unit'

module EmTestRunner
  @em_root = File.expand_path(File.dirname(__FILE__) + '/../')
  @lib_dir = File.join(@em_root, 'lib')
  @ext_dir = File.join(@em_root, 'ext')
  @java_dir = File.join(@em_root, 'java')

  def self.run(glob = 'test_*.rb')
    $:.unshift(@lib_dir)
    $:.unshift(@ext_dir)
    $:.unshift(@java_dir)

    case glob
    when Array
      files = glob
    else
      files = Dir[File.dirname(__FILE__) + '/' + glob]
    end

    files.each do |tc|
      require tc
    end
  end
end

if __FILE__ == $0
  EmTestRunner.run
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
careo-eventmachine-0.12.5.1 tests/testem.rb
davidsmalley-eventmachine-0.12.3.1 tests/testem.rb
eventmachine-eventmachine-0.12.3 tests/testem.rb
eventmachine-eventmachine-0.12.4 tests/testem.rb
eventmachine-eventmachine-0.12.5 tests/testem.rb
eventmachine-eventmachine-0.12.6 tests/testem.rb
eventmachine-eventmachine-0.12.7 tests/testem.rb
libc-eventmachine-0.12.5.42 tests/testem.rb
libc-eventmachine-0.12.7.42 tests/testem.rb
eventmachine-0.12.6 tests/testem.rb
eventmachine-0.12.4 tests/testem.rb
eventmachine-0.12.6-java tests/testem.rb