From 468874997a274e5ba576f82f6fd201692507525b Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 10 Dec 2019 09:19:13 +0100 Subject: test: move TEST-27-STDOUTFILE setup to static files --- test/units/testsuite-27.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 test/units/testsuite-27.sh (limited to 'test/units/testsuite-27.sh') diff --git a/test/units/testsuite-27.sh b/test/units/testsuite-27.sh new file mode 100755 index 0000000000..9d92e6e574 --- /dev/null +++ b/test/units/testsuite-27.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +set -ex +set -o pipefail + +systemd-analyze log-level debug +systemd-analyze log-target console + +systemd-run --wait --unit=test27-one \ + -p StandardOutput=file:/tmp/stdout \ + -p StandardError=file:/tmp/stderr \ + -p Type=exec \ + sh -c 'echo x ; echo y >&2' +cmp /tmp/stdout <&2' +cmp /tmp/stdout <&2' +cmp /tmp/stdout </testok + +exit 0 -- cgit v1.2.3