test: Add effective cgroup limits testing

This commit is contained in:
Michal Koutný
2024-01-03 13:37:58 +01:00
parent 834ca54624
commit ce35bb95c7
2 changed files with 77 additions and 0 deletions
+9
View File
@@ -28,6 +28,15 @@ assert_eq() {(
fi
)}
assert_le() {(
set +ex
if [[ "${1:?}" -gt "${2:?}" ]]; then
echo "FAIL: '$1' > '$2'" >&2
exit 1
fi
)}
assert_in() {(
set +ex