1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-06 12:46:34 +01:00
Files
incus/test
Thomas Hipp 10f6c1dae6 tests: Test stateless migration
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2022-05-18 15:52:32 +02:00
..
2021-12-09 18:05:56 -05:00
2022-03-30 16:41:04 +01:00
2021-10-28 13:01:21 -04:00
2022-05-18 15:52:32 +02:00
2022-03-31 09:29:23 -04:00
2022-04-26 13:21:26 +01:00
2021-04-28 17:25:40 +01:00

How to run

To run all tests, including the Go tests, run from repository root:

sudo -E make check

To run only the integration tests, run from the test directory:

sudo -E ./main.sh

Environment variables

Name Default Description
LXD_BACKEND dir What backend to test against (btrfs, ceph, dir, lvm, zfs, or random)
LXD_CEPH_CLUSTER ceph The name of the ceph cluster to create osd pools in
LXD_CONCURRENT 0 Run concurrency tests, very CPU intensive
LXD_DEBUG 0 Run lxd, lxc and the shell in debug mode (very verbose)
LXD_INSPECT 0 Don't teardown the test environment on failure
LXD_LOGS "" Path to a directory to copy all the LXD logs to
LXD_OFFLINE 0 Skip anything that requires network access
LXD_SKIP_STATIC "" Skip static analysis tests
LXD_TEST_IMAGE "" (busybox test image) Path to an image tarball to use instead of the default busybox image
LXD_TMPFS 0 Sets up a tmpfs for the whole testsuite to run on (fast but needs memory)
LXD_NIC_SRIOV_PARENT "" Enables SR-IOV NIC tests using the specified parent device
LXD_IB_PHYSICAL_PARENT "" Enables Infiniband physical tests using the specified parent device
LXD_IB_SRIOV_PARENT "" Enables Infiniband SR-IOV tests using the specified parent device
LXD_NIC_BRIDGED_DRIVER "" Specifies bridged NIC driver for tests (either native or openvswitch, defaults to native)