Sha256: 2423370c55192b8c254a960d4436beb1cb2a3d24be0b90fc5d3b0dd160551fb9

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

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

def l(t)

  if ENV['RUOTE_TEST_SPLIT'].to_s == 'true'

    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

l(File.expand_path('../storage.rb', __FILE__))

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

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.3.0.3 test/functional/test.rb
ruote-2.3.0.2 test/functional/test.rb
ruote-2.3.0.1 test/functional/test.rb
ruote-2.3.0 test/functional/test.rb