]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/units/testsuite-44.sh
tests: add spdx headers to scripts and Makefiles
[thirdparty/systemd.git] / test / units / testsuite-44.sh
CommitLineData
ff12a795 1#!/usr/bin/env bash
7b3cec95 2# SPDX-License-Identifier: LGPL-2.1-or-later
084575ff 3set -eux
db23d83b
LP
4
5systemd-analyze log-level debug
6
cf9844ff 7systemd-run --wait -p LogNamespace=foobar echo "hello world"
db23d83b
LP
8
9journalctl --namespace=foobar --sync
f49467b9
ZJS
10journalctl -o cat --namespace=foobar >/tmp/hello-world
11journalctl -o cat >/tmp/no-hello-world
db23d83b 12
f49467b9
ZJS
13grep "^hello world$" /tmp/hello-world
14grep "^hello world$" /tmp/no-hello-world && { echo 'unexpected success'; exit 1; }
db23d83b
LP
15
16systemd-analyze log-level info
17
0ee99483 18echo OK >/testok
db23d83b
LP
19
20exit 0