mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
12c45d0e7a
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
25 lines
583 B
Ruby
25 lines
583 B
Ruby
require 'minitest/autorun'
|
|
require 'minitest/spec'
|
|
require 'vulcano/backend'
|
|
|
|
backends = {}
|
|
|
|
backends[:local] = proc {
|
|
backend_conf = Vulcano::Backend.target_config({})
|
|
backend_class = Vulcano::Backend.registry['local']
|
|
backend_class.new(backend_conf)
|
|
}
|
|
|
|
backends[:specinfra_local] = proc {
|
|
backend_conf = Vulcano::Backend.target_config({ 'backend' => 'exec' })
|
|
backend_class = Vulcano::Backend.registry['specinfra']
|
|
backend_class.new(backend_conf)
|
|
}
|
|
|
|
tests = ARGV
|
|
|
|
backends.each do |type, get_backend|
|
|
tests.each do |test|
|
|
instance_eval(File.read(test))
|
|
end
|
|
end
|