require "puma"
require "puma/detect"

TESTS_TO_RUN = if Process.respond_to?(:fork)
  %w[t2 t3]
else
  %w[t2]
end

results = TESTS_TO_RUN.map do |test|
  system("ruby -rrubygems test/shell/#{test}.rb ") # > /dev/null 2>&1
end

if results.any? { |r| r != true }
  exit 1
else
  exit 0
end
