Sha256: 955e1fd0fbca33036c4a6c520730a59e6ca898c0c60f5191dd9196a0e7192b87
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
number_of_workers, pattern = ARGV begin require "deep_test" warlock = DeepTest::Warlock.new Signal.trap("HUP") { warlock.stop_all; exit 0 } Dir.glob(pattern).each { |file| load file } Test::Unit.run = true # server warlock.start "server" do DeepTest::Server.start end sleep 0.25 # workers number_of_workers.to_i.times do |i| warlock.start "worker #{i}" do srand # re-seed random numbers ActiveRecord::Base.connection.reconnect! if defined?(ActiveRecord::Base) blackboard = DeepTest::RindaBlackboard.new DeepTest::Worker.new(blackboard).run end end passed = false loader_pid = fork do puts "Loader (#{$$})" passed = DeepTest::Loader.run exit(passed ? 0 : 1) end Process.wait(loader_pid) passed = $?.success? passed ensure warlock.stop_all if warlock end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deep_test-1.1.1 | script/run_test_suite.rb |