Sha256: 53b2522a01567c0c118535f87072128bdf9cbda1b6cc8eda8bd80b3c66e1efb4

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

#
# testing ruote
#
# since Mon Oct  9 22:19:44 JST 2006
#

def l (t)

  if ARGV.include?('--split')

    puts
    puts "=== #{t} :"
    puts `ruby -I. #{t} #{ARGV.join(' ')}`

    es = $?.exitstatus
    es = es.nil? ? 66 : es.to_s.to_i

    exit(es) if es != 0
  else
    load(t)
  end
end


unless RUBY_PLATFORM.match(/mswin|mingw/)
  #
  # sorry but no more than 1 worker on windows !
  #
  # so no need to run those 2 workers tests
  #
  Dir.glob(File.join(File.dirname(__FILE__), 'ct_*.rb')).sort.each { |t| l(t) }
    # concurrence/collision tests, tests about 2+ instances of ruote colliding
end

Dir.glob(File.join(File.dirname(__FILE__), 'ft_*.rb')).sort.each { |t| l(t) }
  # functional tests targetting features rather than expressions

Dir.glob(File.join(File.dirname(__FILE__), 'rt_*.rb')).sort.each { |t| l(t) }
  # restart tests, start sthing, stop engine, restart, expect thing to resume

Dir.glob(File.join(File.dirname(__FILE__), 'eft_*.rb')).sort.each { |t| l(t) }
  # functional tests targetting specifing expressions

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/functional/test.rb
ruote-2.2.0 test/functional/test.rb