]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add minimal integration test coverage for uid0 tool
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Dec 2023 18:10:13 +0000 (19:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Dec 2023 18:15:01 +0000 (19:15 +0100)
test/units/testsuite-74.run.sh

index 2caca7a5a2ac00cfbe72491433a757bb33b4a706..d43d17ca6124a05a77414da48db8ac691d61721d 100755 (executable)
@@ -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"