Sha256: f200d85af04cae43cd327f74ff45c295ed350a134d660ead93dc7085aa03096f

Contents?: true

Size: 1.31 KB

Versions: 59

Compression:

Stored size: 1.31 KB

Contents

require "rubygems"
require "rspec/autorun"

require "log4r"

# Add the test directory to the load path
$:.unshift File.expand_path("../../", __FILE__)

# Load in the supporting files for our tests
require "acceptance/support/shared/base_context"
require "acceptance/support/config"
require "acceptance/support/virtualbox"
require "acceptance/support/matchers/match_output"
require "acceptance/support/matchers/succeed"

# Do not buffer output
$stdout.sync = true
$stderr.sync = true

# If VirtualBox is currently running, fail.
if Acceptance::VirtualBox.find_vboxsvc
  $stderr.puts "VirtualBox must be closed and remain closed for the duration of the tests."
  abort
end

# Enable logging if requested
if ENV["ACCEPTANCE_LOG"]
  logger = Log4r::Logger.new("test")
  logger.outputters = Log4r::Outputter.stdout
  logger.level = Log4r.const_get(ENV["ACCEPTANCE_LOG"].upcase)
  logger = nil
end

# Parse the command line options and load the global configuration.
if !ENV.has_key?("ACCEPTANCE_CONFIG")
  $stderr.puts "A configuration file must be passed into the acceptance test."
  abort
elsif !File.file?(ENV["ACCEPTANCE_CONFIG"])
  $stderr.puts "The configuration file must exist."
  abort
end

$acceptance_options = Acceptance::Config.new(ENV["ACCEPTANCE_CONFIG"])

# Configure RSpec
RSpec.configure do |c|
  c.expect_with :rspec, :stdlib
end

Version data entries

59 entries across 59 versions & 11 rubygems

Version Path
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/test/acceptance/base.rb
vagrant-lxc-0.0.1 vendor/vagrant/test/acceptance/base.rb
vagrant-1.0.7 test/acceptance/base.rb
vagrant-1.0.6 test/acceptance/base.rb
boxcar-0.10005.1 test/acceptance/base.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/vagrant-1.0.5/test/acceptance/base.rb
vagrant-1.0.5 test/acceptance/base.rb
vagrant-1.0.4 test/acceptance/base.rb
vagrant-1.0.3 test/acceptance/base.rb
vagrant-1.0.2 test/acceptance/base.rb
vagrant-1.0.1 test/acceptance/base.rb
vagrant-1.0.0 test/acceptance/base.rb
vagrant-0.9.7 test/acceptance/base.rb
vagrant-0.9.5 test/acceptance/base.rb
vagrant-0.9.4 test/acceptance/base.rb
vagrant-0.9.3 test/acceptance/base.rb
vagrant-0.9.2 test/acceptance/base.rb
vagrant-0.9.1 test/acceptance/base.rb
vagrant-0.9.0 test/acceptance/base.rb