diff options
Diffstat (limited to 'tests/empty.at')
-rw-r--r-- | tests/empty.at | 51 |
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/>. | ||
16 | AT_SETUP([Send a message unchanged]) | ||
17 | AT_KEYWORDS([send]) | ||
18 | AT_DATA([input], | ||
19 | [HELO localhost | ||
20 | MAIL FROM:<gray@gnu.org> | ||
21 | RCPT TO:<polak@gnu.org> | ||
22 | DATA | ||
23 | From: <gray@gnu.org> | ||
24 | To: <polak@gnu.org> | ||
25 | Subject: Testing unmodified message | ||
26 | |||
27 | This message should go through Anubis unmodified. | ||
28 | . | ||
29 | QUIT | ||
30 | ]) | ||
31 | AT_ANUBIS_CONFIG([empty.rc],[ | ||
32 | BEGIN CONTROL | ||
33 | logfile $PWD/etc/anubis.log | ||
34 | local-mta $abs_builddir/mta -bs -d $PWD/etc/mta.log | ||
35 | use-pam no | ||
36 | END | ||
37 | ]) | ||
38 | AT_CHECK([ | ||
39 | anubis --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 | ||
43 | 250 pleased to meet you | ||
44 | 250 Sender OK | ||
45 | 250 Recipient OK | ||
46 | 354 Enter mail, end with "." on a line by itself | ||
47 | 250 Mail accepted for delivery | ||
48 | 221 Done | ||
49 | ], | ||
50 | [ignore]) | ||
51 | AT_CLEANUP | ||