mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
test: add basic seqnum test
This commit is contained in:
@@ -259,4 +259,13 @@ if is_xattr_supported; then
|
|||||||
rm -rf /etc/systemd/system/logs-filtering.service.d
|
rm -rf /etc/systemd/system/logs-filtering.service.d
|
||||||
fi
|
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
|
touch /testok
|
||||||
|
|||||||
Reference in New Issue
Block a user