incus-mirror/test
Colin Watson 99f8b39716
lint: Run codespell automatically
Signed-off-by: Colin Watson <cjwatson@debian.org>
2025-03-18 14:52:00 -04:00
..
backends [lxd-import] test/backends/ceph: lower OSD pg_num to 8 2023-10-04 02:47:28 -04:00
deps [lxd-import] test/deps: switch to ecdsa certificate 2023-10-31 18:10:39 -04:00
dev_incus-client global: Update Go package to v6 2024-04-05 11:11:11 -04:00
extras tests: Fix spelling errors found by codespell 2025-03-18 14:51:50 -04:00
includes [lxd-import] test/includes/certificates: add gen_cert_and_key() 2023-11-10 21:48:37 -05:00
lint lint: Run codespell automatically 2025-03-18 14:52:00 -04:00
mini-oidc tests: Fix spelling errors found by codespell 2025-03-18 14:51:50 -04:00
suites tests: Fix spelling errors found by codespell 2025-03-18 14:51:50 -04:00
syscall/sysinfo test/syscall/sysinfo: Fixes gosimple lint errors. 2022-06-16 13:43:11 +01:00
tls2jwt tests/tls2jwt: Simplify and add EC support 2024-03-28 17:00:27 -04:00
godeps.list client: Add basic OCI registry client 2024-07-11 11:21:18 -04:00
main.sh tests: Add tests for ipv4.dhcp.routes 2025-03-09 23:50:57 -04:00
perf.sh tests: Port the testsuite to inc/incus 2023-08-03 02:17:15 -04:00
README.md test/README: Fix bad binary names 2023-12-14 22:51:53 -05: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
INCUS_BACKEND dir What backend to test against (btrfs, ceph, dir, lvm, zfs, or random)
INCUS_CEPH_CLUSTER ceph The name of the ceph cluster to create osd pools in
INCUS_CEPH_CEPHFS "" Enables the CephFS tests using the specified cephfs filesystem for cephfs pools
INCUS_CEPH_CEPHOBJECT_RADOSGW "" Enables the Ceph Object tests using the specified radosgw HTTP endpoint for cephobject pools
INCUS_CONCURRENT 0 Run concurrency tests, very CPU intensive
INCUS_DEBUG 0 Run incusd, incus and the shell in debug mode (very verbose)
INCUS_INSPECT 0 Don't teardown the test environment on failure
INCUS_LOGS "" Path to a directory to copy all the Incus logs to
INCUS_OFFLINE 0 Skip anything that requires network access
INCUS_SKIP_TESTS "" Space-delimited list of test names to skip
INCUS_TEST_IMAGE "" (busybox test image) Path to an image tarball to use instead of the default busybox image
INCUS_TMPFS 0 Sets up a tmpfs for the whole testsuite to run on (fast but needs memory)
INCUS_NIC_SRIOV_PARENT "" Enables SR-IOV NIC tests using the specified parent device
INCUS_IB_PHYSICAL_PARENT "" Enables Infiniband physical tests using the specified parent device
INCUS_IB_SRIOV_PARENT "" Enables Infiniband SR-IOV tests using the specified parent device
INCUS_NIC_BRIDGED_DRIVER "" Specifies bridged NIC driver for tests (either native or openvswitch, defaults to native)
INCUS_REQUIRED_TESTS "" Space-delimited list of test names that must not be skipped if their prerequisites are not met
INCUS_VERBOSE 0 Run incusd, incus and the shell in verbose mode