summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-31 14:40:03 +0100
committerLennart Poettering <lennart@poettering.net>2023-02-08 13:52:14 +0100
commitf28ed2c1be77c2aab7ebf488ac095cd796294172 (patch)
tree584673666b28f0e420d6b6388289db1420ecc9f6 /test
parent11181f8a5a1e26167b9f09f3f0ed398750cc6bd7 (diff)
downloadsystemd-f28ed2c1be77c2aab7ebf488ac095cd796294172.tar.gz
test: add basic seqnum test
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-04.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh
index 5d27df91fb..419d00bedf 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