vmshed

command module
v0.14.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: GPL-2.0 Imports: 1 Imported by: 0

README

vmshed

vmshed is a shed for storing your VMs. More precisely, it is a s(c)heduler for running tests in VMs.

Usage

vmshed basically takes as input two configuration files, one that defines the tests ("tests specification"), and one that defines the set of VMs ("VMs specification"). Then it executes tests concurrently and collects the result and if desired prepares output in the JUnit format.

Example:

vmshed --tests example/tests.example.toml --vms example/vms.example.toml

Usage in Docker

Running vmshed in Docker is a little complicated due to its dependencies. Here is an example:

$ docker run -it --rm -v /my-config/virter:/root/.config/virter:ro \
  -v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v `pwd`/example:/opt/virter/example \
  --network=host \
  vmshed --tests example/tests.example.toml --vms example/vms.example.toml

Tests specification

The tests specification is a TOML file that is provided with the --tests flag. It defines what tests there are and how they are run.

Test suite file

The top level key test_suite_file in the tests specification references a virter provisioning file which is run with virter vm exec. This executes one test.

The environment variable TEST_NAME contains the name of the test to be run.

To override values in the provisioning file, use the --set flag.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL