Sha256: 3c249a6d4b208d7c80e14d4612835b5beea0a60b2ae407a88dd0ecf0beb74ce7

Contents?: true

Size: 962 Bytes

Versions: 1

Compression:

Stored size: 962 Bytes

Contents

require 'pp'
require 'ftools.rb'
$: << File.expand_path("../..",__FILE__)
$: << File.expand_path("..",__FILE__)
Dir[File.expand_path("../../../apps/*",__FILE__)].each{|d|$: << d if File.directory?(d)}

require 'cluster_funcs.rb'
require 'tools.rb'
require 'package.rb'

require 'cross_spectool.rb'
require 'proxy_testing.rb'
require 'appswarm.rb'






# checks if there are still some threads running in between test cases
def checkThreads(time)
  if Thread.list.select{|t|t.stacktrace?}.length>1
    puts "checkThreads may fail"
    Thread.current.printOthers
  end

  "#{Thread.list.select{|t|t.alive?}.select{|t|t.stacktrace?}.length} #{time}".should == "1 #{time}"
  TestBed.testbeds.length.should == 0
end

class TestLogger
  @@file=nil
  def self.log(*x)
    unless @@file
      path=File.expand_path('../../test.log',__FILE__)
      @@file=File.open(path,"w+")
    end
    @@file.puts x.inspect
    @@file.flush
  end
end


require 'appswarm/test_bed.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 lib/appswarm/features_helper.rb