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'