2018-09-28 15:23:52 -04:00
|
|
|
require "aruba/cucumber"
|
2010-11-10 15:59:38 -05:00
|
|
|
|
2018-09-28 22:34:23 -04:00
|
|
|
PROJECT_ROOT =
|
|
|
|
File.expand_path(File.join(File.dirname(__FILE__), "..", "..")).freeze
|
2011-06-29 12:30:28 -04:00
|
|
|
|
2016-04-07 16:23:39 -04:00
|
|
|
Aruba.configure do |config|
|
|
|
|
config.exit_timeout = Integer ENV.fetch("ARUBA_TIMEOUT") { 120 }
|
2011-06-29 12:30:28 -04:00
|
|
|
end
|
2012-12-19 14:29:51 -05:00
|
|
|
|
2018-09-28 15:23:52 -04:00
|
|
|
if RUBY_PLATFORM == "java"
|
|
|
|
Aruba.configure do |config|
|
2018-09-28 22:34:23 -04:00
|
|
|
config.before_cmd do
|
|
|
|
# disable JIT since these processes are so short lived
|
|
|
|
set_env("JRUBY_OPTS", "-X-C #{ENV['JRUBY_OPTS']}")
|
2013-12-16 08:35:06 -05:00
|
|
|
|
2018-09-28 15:23:52 -04:00
|
|
|
java_options = ENV["JAVA_OPTS"]
|
2013-12-16 08:35:06 -05:00
|
|
|
|
2018-09-28 15:23:52 -04:00
|
|
|
if 1.size == 4 # 4 for 32 bit java, 8 for 64 bit java.
|
|
|
|
set_env("JAVA_OPTS", "-d32 #{java_options}")
|
|
|
|
else
|
2018-09-28 22:34:23 -04:00
|
|
|
set_env(
|
|
|
|
"JAVA_OPTS",
|
|
|
|
"-XX:+TieredCompilation -XX:TieredStopAtLevel=1 #{java_options}",
|
|
|
|
)
|
2018-09-28 15:23:52 -04:00
|
|
|
end
|
2013-12-16 08:35:06 -05:00
|
|
|
end
|
2012-12-19 14:29:51 -05:00
|
|
|
end
|
2018-09-28 15:23:52 -04:00
|
|
|
end
|