Sha256: d4c38c862b9ba7e62b4c70416517b32de33e886b0c8d35fbcef9f8ab80721cae

Contents?: true

Size: 872 Bytes

Versions: 5

Compression:

Stored size: 872 Bytes

Contents

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

def l (t)

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

    _v = ARGV.include?('-v') ? ' -v' : ' '

    puts
    puts "=== #{t} :"
    puts `ruby#{_v} #{t}`

    exit $?.exitstatus if $?.exitstatus != 0
  else
    load(t)
  end
end


Dir.glob(File.join(File.dirname(__FILE__), 'ct_*.rb')).sort.each { |t| l(t) }
  # concurrence/collision tests, tests about 2+ instances of ruote colliding

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

5 entries across 5 versions & 1 rubygems

Version Path
ruote-2.1.5 test/functional/test.rb
ruote-2.1.4 test/functional/test.rb
ruote-2.1.3 test/functional/test.rb
ruote-2.1.2 test/functional/test.rb
ruote-2.1.1 test/functional/test.rb