mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
This is the result of: shfmt -w -i 4 -sr -l test/ Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
13 lines
395 B
Bash
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:"
|
|
}
|