1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00
Files
incus/test/suites/resources.sh
Stéphane Graber 60b0a97720 tests: Standardize indentation
This is the result of: shfmt -w -i 4 -sr -l test/

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-31 15:15:11 -04:00

13 lines
395 B
Bash

test_resources() {
RES=$(incus storage show --resources "incustest-$(basename "${INCUS_DIR}")")
echo "${RES}" | grep -q "^space:"
RES=$(incus info --resources)
echo "${RES}" | grep -q "^CPU"
echo "${RES}" | grep -q "Cores:"
echo "${RES}" | grep -q "Threads:"
echo "${RES}" | grep -q "Free:"
echo "${RES}" | grep -q "Used:"
echo "${RES}" | grep -q "Total:"
}