From d0c92dae23e409f6a29f70f039455c08610c943f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= Date: Tue, 23 Jan 2024 11:30:19 +0100 Subject: [PATCH 5008/5011] test: Add effective cgroup limits testing (cherry picked from commit ce35bb95c7b6fe9a48d2b8628bd690279b17fffa) [mkoutny: fixes jsc#PED-5659] --- test/units/testsuite-05.effective-limit.sh | 68 ++++++++++++++++++++++ test/units/util.sh | 9 +++ 2 files changed, 77 insertions(+) create mode 100755 test/units/testsuite-05.effective-limit.sh diff --git a/test/units/testsuite-05.effective-limit.sh b/test/units/testsuite-05.effective-limit.sh new file mode 100755 index 0000000000..3ff8e83140 --- /dev/null +++ b/test/units/testsuite-05.effective-limit.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eux +set -o pipefail + +# shellcheck source=test/units/util.sh +. "$(dirname "$0")"/util.sh + +pre=test05 +cat >/run/systemd/system/"$pre"alpha.slice </run/systemd/system/"$pre"alpha-beta.slice </run/systemd/system/"$pre"alpha-beta-gamma.slice < '$2'" >&2 + exit 1 + fi +)} + assert_in() {( set +ex -- 2.35.3