summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-06-19 17:12:23 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-06-19 23:42:00 +0200
commit3f38d582d583338f1711879a1c36ece2f0f4c6dd (patch)
tree066f9fab00c0fc95e957eed39094dd94338f4685 /test
parentMerge pull request #28074 from mrc0mmand/journal-gatewayd-followups (diff)
downloadsystemd-3f38d582d583338f1711879a1c36ece2f0f4c6dd.tar.xz
systemd-3f38d582d583338f1711879a1c36ece2f0f4c6dd.zip
test: cover systemd-journal-remote --url=...
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-04.journal-gatewayd.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/units/testsuite-04.journal-gatewayd.sh b/test/units/testsuite-04.journal-gatewayd.sh
index 1efdc3cae0..75f51dd745 100755
--- a/test/units/testsuite-04.journal-gatewayd.sh
+++ b/test/units/testsuite-04.journal-gatewayd.sh
@@ -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