Cross Reference: test-journal.sh
xref
: /
forgerock
/
opendj2-hg
/
tests
/
staf-tests
/
functional-tests
/
shared
/
data
/
dsml
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
test-journal.sh revision 1c36b4a73b876258fbe01fbe9bc9b750b7dcc9ce
#!/
bin
/
bash
set
-x
set
-e
set
-o
pipefail
# Test stdout stream
# Skip empty lines
ID
=
$(
journalctl
--
new
-
id128
|
sed
-n
2
p)
>/
expected
printf
$'\n\n\n'
|
systemd
-
cat
-t
"
$ID
"
--
level
-
prefix
false
journalctl
--
flush
journalctl
-b -o
cat
-t
"
$ID
"
>/
output
cmp
/
expected
/
output
ID
=
$(
journalctl
--
new
-
id128
|
sed
-n
2
p)
>/
expected
printf
$'<5>\n<6>\n<7>\n'
|
systemd
-
cat
-t
"
$ID
"
--
level
-
prefix
true
journalctl
--
flush
journalctl
-b -o
cat
-t
"
$ID
"
>/
output
cmp
/
expected
/
output
touch
/
testok
exit
0