Exemplo n.º 1
0
    if hasattr(self, "_timer") and self._timer:
      self._timer.cancel()
    return self

  def wait(self):
    if hasattr(self, "_timer") and self._timer:
      self._timer.join()
    self._hyper.wait()
    return self._exit_status

  def poll(self):
    return self._hyper.poll()

print color.HEADER("IncludeOS vmrunner initializing tests")
print color.INFO(nametag), "Validating test service"
validate_test.load_schema(os.environ["INCLUDEOS_SRC"] + "/test/vm.schema.json")
validate_test.has_required_stuff(".")

default_spec = {"image" : "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
  print
  print color.INFO(nametag), "Loaded VM specification(s) from JSON"
  for spec in validate_test.valid_vms:
    print color.INFO(nametag), "Found VM spec: "
    print color.DATA(spec.__str__())
    vms.append(vm(spec))
Exemplo n.º 2
0
    def wait(self):
        if hasattr(self, "_timer") and self._timer:
            self._timer.join()
        self._hyper.wait()
        return self._exit_status

    def poll(self):
        return self._hyper.poll()


print color.HEADER("IncludeOS vmrunner initializing tests")
print color.INFO(nametag), "Validating test service"
validate_test.load_schema(
    os.environ.get(
        "INCLUDEOS_SRC",
        os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(
            __file__))).split('/test')[0]) + "/test/vm.schema.json")
validate_test.has_required_stuff(".")

default_spec = {"image": "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
    print
    print color.INFO(nametag), "Loaded VM specification(s) from JSON"
    for spec in validate_test.valid_vms:
        print color.INFO(nametag), "Found VM spec: "
        print color.DATA(spec.__str__())
Exemplo n.º 3
0
            self._timer.cancel()
        return self

    def wait(self):
        if hasattr(self, "_timer") and self._timer:
            self._timer.join()
        self._hyper.wait()
        return self._exit_status

    def poll(self):
        return self._hyper.poll()


print color.HEADER("IncludeOS vmrunner initializing tests")
print color.INFO(nametag), "Validating test service"
validate_test.load_schema(os.environ["INCLUDEOS_SRC"] + "/test/vm.schema.json")
validate_test.has_required_stuff(".")

default_spec = {"image": "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
    print
    print color.INFO(nametag), "Loaded VM specification(s) from JSON"
    for spec in validate_test.valid_vms:
        print color.INFO(nametag), "Found VM spec: "
        print color.DATA(spec.__str__())
        vms.append(vm(spec))
Exemplo n.º 4
0
    if hasattr(self, "_timer") and self._timer:
      self._timer.cancel()
    return self

  def wait(self):
    if hasattr(self, "_timer") and self._timer:
      self._timer.join()
    self._hyper.wait()
    return self._exit_status

  def poll(self):
    return self._hyper.poll()

print color.HEADER("IncludeOS vmrunner initializing tests")
print color.INFO(nametag), "Validating test service"
validate_test.load_schema(os.environ.get("INCLUDEOS_SRC", os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) + "/test/vm.schema.json")
validate_test.has_required_stuff(".")

default_spec = {"image" : "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
  print
  print color.INFO(nametag), "Loaded VM specification(s) from JSON"
  for spec in validate_test.valid_vms:
    print color.INFO(nametag), "Found VM spec: "
    print color.DATA(spec.__str__())
    vms.append(vm(spec))
Exemplo n.º 5
0
        return self

    def wait(self):
        if hasattr(self, "_timer") and self._timer:
            self._timer.join()
        self._hyper.wait()
        return self._exit_status

    def poll(self):
        return self._hyper.poll()


print
print "<VMRunner>", "Validating test"

validate_test.load_schema("../vm.schema.json")
validate_test.has_required_stuff(".")

print
print "<VMRunner>", "Building test with 'make'"
subprocess.check_call(["make"])

default_spec = {"image": "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
    print
    print "<VMRunner>", "Loaded VM specification(s) from JSON"
    for spec in validate_test.valid_vms:
Exemplo n.º 6
0
      self._timer.cancel()
    return self

  def wait(self):
    if hasattr(self, "_timer") and self._timer:
      self._timer.join()
    self._hyper.wait()
    return self._exit_status


  def poll(self):
    return self._hyper.poll()

print color.HEADER("IncludeOS vmrunner initializing tests")
print color.INFO(nametag), "Validating test service"
validate_test.load_schema("../vm.schema.json")
validate_test.has_required_stuff(".")

print color.INFO(nametag), "Building test service with 'make'"
res = subprocess.check_output(["make"])
print color.SUBPROC(res)

default_spec = {"image" : "test.img"}

# Provide a list of VM's with validated specs
vms = []

if validate_test.valid_vms:
  print
  print color.INFO(nametag), "Loaded VM specification(s) from JSON"
  for spec in validate_test.valid_vms: