Sha256: 02734066a1b913b08848c7c9dc2580a7feb0b8612f5acf576e153c657429710c

Contents?: true

Size: 1.36 KB

Versions: 22

Compression:

Stored size: 1.36 KB

Contents

#!/usr/bin/ruby -w

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
$:.unshift File.join(File.dirname(__FILE__), '..', 'test')
$:.unshift File.join(File.dirname(__FILE__), 'lib')
$:.unshift File.join(File.dirname(__FILE__), 'test')

# This is allowed here, to make sure it's enabled in all test.
Thread::abort_on_exception = true

require 'xmpp4r'
require 'find'

# List files' basenames, not full path!
# EXCLUDED_FILES = [ 'tc_muc_simplemucclient.rb' ]
EXCLUDED_FILES = []

tc_files = []
tc_subdirs = []
Find.find(File.dirname(__FILE__)) do |f|
  if File::directory?(f)
    if f == '.'
      # do nothing
    elsif File::basename(f) != '.svn'
      tc_subdirs << f
      Find.prune
    end
  elsif File::basename(f) =~ /^tc.*\.rb$/
    tc_files << f
  end
end

tc_subdirs.each do |dir|
  Find.find(dir) do |f|
    if File::file?(f) and File::basename(f) =~ /^tc.*\.rb$/

      if (RUBY_VERSION.split('.').collect {|n| n.to_i} <=> [1,9,0]) >= 0
        # TODO: at the moment, these two test cases have timing dependencies
        # on threaded code.  While they may pass with the green thread
        # implementation in Ruby 1.8, they often fail with real threads.
        next if f =~ /tc_helper.rb/
        next if f =~ /tc_stream.rb/
      end

      tc_files << f
    end
  end
end

tc_files.each do |f|
  next if EXCLUDED_FILES.include?(File::basename(f))
  require f
end

Version data entries

22 entries across 22 versions & 10 rubygems

Version Path
brontes3d-xmpp4r-0.4 test/ts_xmpp4r.rb
bryanl-xmpp4r-0.3.2 test/ts_xmpp4r.rb
edavey-xmpp4r-0.4.1 test/ts_xmpp4r.rb
edavey-xmpp4r-0.4.2 test/ts_xmpp4r.rb
edavey-xmpp4r-0.4 test/ts_xmpp4r.rb
heipei-xmpp4r-0.3.2 test/ts_xmpp4r.rb
mojodna-xmpp4r-0.4.0.2 test/ts_xmpp4r.rb
mojodna-xmpp4r-0.4.0.3 test/ts_xmpp4r.rb
seanohalpin-xmpp4r-0.4.1 test/ts_xmpp4r.rb
cerberus-0.8.0 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.9 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
edavis10-cerberus-0.7.8 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.8 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.7 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.6 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.2 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7.5 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
cerberus-0.7 lib/vendor/xmpp4r/test/ts_xmpp4r.rb
mack-notifier-0.8.3 lib/gems/xmpp4r-0.4/test/ts_xmpp4r.rb
mack-notifier-0.8.2 lib/gems/xmpp4r-0.4/test/ts_xmpp4r.rb