Sha256: e40496109c9d82b6109e9ead5c4458a94c6f0286b61489e3a464585622d2efdf

Contents?: true

Size: 612 Bytes

Versions: 7

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

count = ARGV[0] ? ARGV[0].to_i : 100
test_name = ARGV[1]

$test_cmd = +'ruby test/run.rb  --name test_receive_cross_thread_exception'
if test_name
  $test_cmd << " --name #{test_name}"
end

def run_test(count)
  puts "#{count}: running tests..."
  # sleep 1
  system($test_cmd)
  puts

  return if $?.exitstatus == 0

  puts "Failure after #{count} tests"
  exit!
end

trap('INT') { exit! }
t0 = Time.now
count.times do |i|
  run_test(i + 1)
end
elapsed = Time.now - t0
puts format(
  "Successfully ran %d tests in %f seconds (%f per test)",
  count,
  elapsed,
  elapsed / count
)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
polyphony-0.76 test/stress.rb
polyphony-0.75 test/stress.rb
polyphony-0.74 test/stress.rb
polyphony-0.73.1 test/stress.rb
polyphony-0.73 test/stress.rb
polyphony-0.72 test/stress.rb
polyphony-0.71 test/stress.rb