Documentation ¶
Overview ¶
Package vmtests includes utilities for running tetragon tests inside VMs. It allows the program that manages the VM to coordinate with the tester, i.e., program that runs the tests (inside the VM). The former will provide a configuration file (TesterConf) to the latter, and the latter will produce a set of results (Result[]) to the former (typically, also as a JSON file).
The tester requires access to a tetragon source directory. The way it works for now is by using the compiled go tests in the go-tests directory. It them and produces a Result for each of them. This can be extended in the future. The configuration file can be used to pass specific options for all or individual tests (e.g., timeouts).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ConfFile = "/etc/tetragon-tester.json" // configuration file for the tester TestTimeout = 45 * time.Minute // timeout for each test )
Functions ¶
Types ¶
type Conf ¶
type Conf struct { NoPowerOff bool `json:"no-poweroff"` // do not power-off the machine when done TetragonDir string `json:"tetragon-dir"` // tetragon source dir ResultsDir string `json:"results-dir"` // directory to place the results TestsFile string `json:"tests-file"` // file describing which tests to run BTFFile string `json:"btf-file"` // btf file to use FailFast bool `json:"fail-fast"` KeepAllLogs bool `json:"keep-all-logs"` KernelVer string `json:"kernel-ver"` // kernel version }
Conf configures the tester