| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 
 | # This file is part of GNU Mailutils. -*- Autotest -*-
# Copyright (C) 2017-2025 Free Software Foundation, Inc.
#
# GNU Mailutils is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3, or (at
# your option) any later version.
#
# GNU Mailutils is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
AT_SETUP(Logger stream)
AT_KEYWORDS([logstream])
AT_CHECK([logstr],
[0],
[00. simple print
hello world
01. severity
info: one
emerg: two
mode was: 0x0001
02. suppress severity
info: this message is seen
emerg: and this one as well
03. suppress severity name
info: this message is seen
emerg: and this one as well
04. severity mask
one
two
emerg: three
05. locus: file, line
input:1: file, line
06. locus: file, line, col
input:1.1-10: file, line, col
07. locus: file, line-range
input:1-2: file, line-range
08. locus: file, line-range, col
input:1.1-2.10: file, line-range, col
09. locus: file-range, line-range, col-range
input:1.1-next:2.10: file-range, line-range, col-range
10. set locus line
input:1.1-next:2.10: initial
input:8.1-next:2.10: locus line changed
11. advance locus line
input:1.1-next:5.10: initial
input:3.1-next:5.10: locus line advanced
12. set locus column
input:1.1-next:2.10: initial
input:1.8-next:2.10: locus column changed
13. advance locus column
input:1.1-next:5.10: initial
input:1.5-next:5.10: locus line advanced
14. fmt: severity
info: severity
15. fmt: locus (file, line)
a:10: one
16. fmt: locus (file, line, column)
a:10.5: one
17. fmt: locus (range)
a:10.5-b:14.8: one
18. fmt: locus; restore defaults
a:10.5-b:14.8: one
default
19. fmt: locus; restore defaults, display locus
a:10.5-b:14.8: one
input:1.1-next:5.10: default
20. fmt: set locus
a:10.5-b:14.8: one
a:10.5-b:14.8: default
21. prefix
LOG1: one
LOG2: two
prefix off
LOG2: prefix on
three
])
AT_CLEANUP
 |