inspec/test/runner/test_local.rb

23 lines
404 B
Ruby
Raw Normal View History

# encoding: utf-8
require_relative 'helper'
require 'vulcano/backend'
backends = {}
backends[:local] = proc {
2015-10-05 21:46:33 +00:00
Vulcano::Backend.create('local', {}).backend
}
backends[:specinfra_local] = proc {
2015-10-05 21:46:33 +00:00
opt = { 'backend' => 'exec' }
Vulcano::Backend.create('specinfra', opt).backend
}
tests = ARGV
backends.each do |type, get_backend|
tests.each do |test|
instance_eval(File.read(test))
end
end