2015-09-15 12:38:19 +00:00
|
|
|
# encoding: utf-8
|
2015-09-24 01:11:30 +00:00
|
|
|
require_relative 'helper'
|
2015-09-14 14:34:58 +00:00
|
|
|
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 {
|
2015-09-15 10:38:51 +00:00
|
|
|
backend_conf = Vulcano::Backend.target_config({ 'backend' => 'exec' })
|
2015-09-14 14:34:58 +00:00
|
|
|
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
|