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 {
|
2015-10-05 21:46:33 +00:00
|
|
|
Vulcano::Backend.create('local', {}).backend
|
2015-09-14 14:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
backends[:specinfra_local] = proc {
|
2015-10-06 13:35:37 +00:00
|
|
|
c = { 'backend' => 'exec' }
|
|
|
|
opt = Vulcano::Backend.target_config(c)
|
2015-10-05 21:46:33 +00:00
|
|
|
Vulcano::Backend.create('specinfra', opt).backend
|
2015-09-14 14:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tests = ARGV
|
|
|
|
|
|
|
|
backends.each do |type, get_backend|
|
|
|
|
tests.each do |test|
|
|
|
|
instance_eval(File.read(test))
|
|
|
|
end
|
|
|
|
end
|