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
Harry Lewis e5f1655e47
[changelog skip] Move integration logging test to main test suite (#2240)
* Copy test from shell/t1.rb to test/test_integration_t1.rb
2020-04-29 15:06:11 +09:00

18 lines
287 B
Ruby

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