From f28ed2c1be77c2aab7ebf488ac095cd796294172 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 31 Jan 2023 14:40:03 +0100 Subject: [PATCH] test: add basic seqnum test --- test/units/testsuite-04.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.47.3