From: Lennart Poettering Date: Thu, 27 Mar 2025 23:51:08 +0000 (-0400) Subject: test: add test for "systemd-run -v" X-Git-Tag: v258-rc1~633^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b186c21aa500eb7da3de0dcbd4cc1f07589a5a;p=thirdparty%2Fsystemd.git test: add test for "systemd-run -v" --- diff --git a/test/units/TEST-07-PID1.startv.sh b/test/units/TEST-07-PID1.startv.sh new file mode 100755 index 00000000000..bcc7c0bc68d --- /dev/null +++ b/test/units/TEST-07-PID1.startv.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +# shellcheck disable=SC2016 +set -eux +set -o pipefail + +# shellcheck source=test/units/util.sh +. "$(dirname "$0")"/util.sh + +systemd-run -v --wait echo wampfl | grep wampfl + +systemd-run -v -p Type=notify bash -c 'echo brumfl ; systemd-notify --ready ; echo krass' | grep brumfl + +mkdir -p /run/systemd/journald.conf.d/ + +# Let's disable storage of debug messages, since we want to flood the journal +# daemon with messages that it will have to process, but we do not actually +# want to push out our own messages from storage while doing so +cat >> /run/systemd/journald.conf.d/50-disable-debug.conf <