From: Lennart Poettering Date: Wed, 20 Dec 2023 18:10:13 +0000 (+0100) Subject: test: add minimal integration test coverage for uid0 tool X-Git-Tag: v256-rc1~1428^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd25a95763e6ee52d40f4012ffeb2ce719f26b8d;p=thirdparty%2Fsystemd.git test: add minimal integration test coverage for uid0 tool --- diff --git a/test/units/testsuite-74.run.sh b/test/units/testsuite-74.run.sh index 2caca7a5a2a..d43d17ca612 100755 --- a/test/units/testsuite-74.run.sh +++ b/test/units/testsuite-74.run.sh @@ -227,5 +227,9 @@ B=$(systemd-run -q --wait --pipe -p ProtectProc=invisible cat /proc/version) assert_eq "$A" "$B" +# Check that invoking the tool under the uid0 alias name works +uid0 ls / +echo "$(uid0 echo foo)" = "foo" + umount /proc/version rm "$V"