mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
22 lines
468 B
Ruby
22 lines
468 B
Ruby
namespace :acceptance do
|
|
desc "shows components that can be tested"
|
|
task :components do
|
|
exec("vagrant-spec components --config=vagrant-spec.config.rb")
|
|
end
|
|
|
|
desc "runs acceptance tests"
|
|
task :run do
|
|
args = [
|
|
"--config=vagrant-spec.config.rb",
|
|
]
|
|
|
|
if ENV["COMPONENTS"]
|
|
args << "--components=\"#{ENV["COMPONENTS"]}\""
|
|
end
|
|
|
|
command = "vagrant-spec test #{args.join(" ")}"
|
|
puts command
|
|
puts
|
|
exec(command)
|
|
end
|
|
end
|