1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/shell/run.rb

19 lines
287 B
Ruby
Raw Normal View History

2020-03-14 13:43:06 -06:00
require "puma"
require "puma/detect"
TESTS_TO_RUN = if Process.respond_to?(:fork)
%w[t2 t3]
else
%w[t2]
2020-03-14 13:43:06 -06:00
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