From: Lennart Poettering Date: Tue, 31 Jan 2023 13:40:03 +0000 (+0100) Subject: test: add basic seqnum test X-Git-Tag: v254-rc1~1277^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f28ed2c1be77c2aab7ebf488ac095cd796294172;p=thirdparty%2Fsystemd.git test: add basic seqnum test --- diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh index 5d27df91fbe..419d00bedfd 100755 --- a/test/units/testsuite-04.sh +++ b/test/units/testsuite-04.sh @@ -259,4 +259,13 @@ if is_xattr_supported; then rm -rf /etc/systemd/system/logs-filtering.service.d fi +# Check that the seqnum field at least superficially works +systemd-cat echo "ya" +journalctl --sync +SEQNUM1=$(journalctl -o export -n 1 | grep -a __SEQNUM= | cut -d= -f2) +systemd-cat echo "yo" +journalctl --sync +SEQNUM2=$(journalctl -o export -n 1 | grep -a __SEQNUM= | cut -d= -f2) +test "$SEQNUM2" -gt "$SEQNUM1" + touch /testok