]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tasts: add logger octet counting test
authorKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 08:41:50 +0000 (10:41 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 08:41:50 +0000 (10:41 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/logger/formats-octet_counting [new file with mode: 0644]
tests/ts/logger/formats

diff --git a/tests/expected/logger/formats-octet_counting b/tests/expected/logger/formats-octet_counting
new file mode 100644 (file)
index 0000000..6b18824
--- /dev/null
@@ -0,0 +1,2 @@
+34 <13>Feb 13 23:31:30 octen: message
+ret: 0
index 02220615202e412ae24cb9b277ae5a58366e7801..ea1a5d01969eb91f6391ca13b70214f46c0a84e3 100755 (executable)
@@ -61,6 +61,10 @@ ts_init_subtest "rfc5424_msgid"
 logger_fun -t "rfc5424" --rfc5424 --msgid "MSGID" "message"
 ts_finalize_subtest
 
+ts_init_subtest "octet_counting"
+logger_fun -t "octen" --octet-count "message"
+ts_finalize_subtest
+
 ts_init_subtest "priorities"
 for facility in auth authpriv cron daemon ftp lpr mail news syslog user uucp local{0..7}; do
        for level in emerg alert crit err warning notice info debug; do