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