mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
18 lines
287 B
Ruby
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
|