inspec/test/runner/test_local.rb

26 lines
471 B
Ruby
Raw Normal View History

# encoding: utf-8
2015-10-06 16:55:44 +00:00
# author: Dominik Richter
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 {
c = { 'backend' => 'exec' }
opt = Vulcano::Backend.target_config(c)
2015-10-05 21:46:33 +00:00
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