aboutsummaryrefslogtreecommitdiff
path: root/tests/empty.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/empty.at')
-rw-r--r--tests/empty.at51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/empty.at b/tests/empty.at
new file mode 100644
index 0000000..350e141
--- /dev/null
+++ b/tests/empty.at
@@ -0,0 +1,51 @@
1# This file is part of GNU Anubis testsuite. -*- autotest -*-
2# Copyright (C) 2003-2024 The Anubis Team.
3#
4# GNU Anubis is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by the Free
6# Software Foundation; either version 3 of the License, or (at your option)
7# any later version.
8#
9# GNU Anubis is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along
15# with GNU Anubis. If not, see <http://www.gnu.org/licenses/>.
16AT_SETUP([Send a message unchanged])
17AT_KEYWORDS([send])
18AT_DATA([input],
19[HELO localhost
20MAIL FROM:<gray@gnu.org>
21RCPT TO:<polak@gnu.org>
22DATA
23From: <gray@gnu.org>
24To: <polak@gnu.org>
25Subject: Testing unmodified message
26
27This message should go through Anubis unmodified.
28.
29QUIT
30])
31AT_ANUBIS_CONFIG([empty.rc],[
32BEGIN CONTROL
33logfile $PWD/etc/anubis.log
34local-mta $abs_builddir/mta -bs -d $PWD/etc/mta.log
35use-pam no
36END
37])
38AT_CHECK([
39anubis --norc --relax-perm-check --altrc etc/empty.rc --stdio < input | tr -d '\r'
40],
41[0],
42[220 localhost ([GNU Anubis v]AT_PACKAGE_VERSION) bitbucket ready
43250 pleased to meet you
44250 Sender OK
45250 Recipient OK
46354 Enter mail, end with "." on a line by itself
47250 Mail accepted for delivery
48221 Done
49],
50[ignore])
51AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.