]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: cover systemd-journal-remote --url=...
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 19 Jun 2023 15:12:23 +0000 (17:12 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 19 Jun 2023 21:42:00 +0000 (23:42 +0200)
test/units/testsuite-04.journal-gatewayd.sh

index 1efdc3cae0e3727dfeb4f981cf9b60551b782166..75f51dd745e148e88680963e04293ea0bdf0b651 100755 (executable)
@@ -57,7 +57,13 @@ curl -Lfs --header "Accept: text/event-stream" http://localhost:19531/entries |
 # Same thing as journalctl --output=export
 mkdir /tmp/remote-journal
 curl -Lfs --header "Accept: application/vnd.fdo.journal" http://localhost:19531/entries | \
-    /usr/lib/systemd/systemd-journal-remote -o /tmp/remote-journal/system.journal --split-mode=none -
+    /usr/lib/systemd/systemd-journal-remote --output=/tmp/remote-journal/system.journal --split-mode=none -
+journalctl --directory=/tmp/remote-journal -t "$TEST_TAG" --grep "$TEST_MESSAGE"
+rm -rf /tmp/remote-journal/*
+# Let's do the same thing again, but let systemd-journal-remote spawn curl itself
+/usr/lib/systemd/systemd-journal-remote --url=http://localhost:19531/entries \
+                                        --output=/tmp/remote-journal/system.journal \
+                                        --split-mode=none
 journalctl --directory=/tmp/remote-journal -t "$TEST_TAG" --grep "$TEST_MESSAGE"
 rm -rf /tmp/remote-journal