diff options
Diffstat (limited to 'tests/mult.at')
-rw-r--r-- | tests/mult.at | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/tests/mult.at b/tests/mult.at new file mode 100644 index 0000000..573fff0 --- /dev/null +++ b/tests/mult.at | |||
@@ -0,0 +1,101 @@ | |||
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 multiple messages unchanged]) | ||
17 | AT_ANUBIS_CONFIG([empty.rc],[ | ||
18 | BEGIN CONTROL | ||
19 | logfile $PWD/etc/anubis.log | ||
20 | local-mta $abs_builddir/mta -bs -d $PWD/etc/mta.log | ||
21 | use-pam no | ||
22 | END | ||
23 | ]) | ||
24 | AT_DATA([input], | ||
25 | [HELO localhost | ||
26 | MAIL FROM:<gray@gnu.org> | ||
27 | RCPT TO:<polak@gnu.org> | ||
28 | DATA | ||
29 | From: <gray@gnu.org> | ||
30 | To: <polak@gnu.org> | ||
31 | Subject: The Tao of Programming, Part I | ||
32 | |||
33 | A manger went to his programmers and told them: "As regards to your | ||
34 | work hours: you are going to have to come in at nine in the morning and leave | ||
35 | at five in the afternoon." At this, all of them became angry and several | ||
36 | resigned on the spot. | ||
37 | So the manager said: "All right, in that case you may set your own | ||
38 | working hours, as long as you finish your projects on schedule." The | ||
39 | programmers, now satisfied, began to come in a noon and work to the wee | ||
40 | hours of the morning. | ||
41 | . | ||
42 | MAIL FROM:<gray@gnu.org> | ||
43 | RCPT TO:<polak@gnu.org> | ||
44 | DATA | ||
45 | From: <gray@gnu.org> | ||
46 | To: <polak@gnu.org> | ||
47 | Subject: The Tao of Programming, Part II | ||
48 | |||
49 | A master was explaining the nature of the Tao to one of his novices, | ||
50 | "The Tao is embodied in all software -- regardless of how insignificant," | ||
51 | said the master. | ||
52 | "Is the Tao in a hand-held calculator?" asked the novice. | ||
53 | "It is," came the reply. | ||
54 | "Is the Tao in a video game?" continued the novice. | ||
55 | "It is even in a video game," said the master. | ||
56 | "And is the Tao in the DOS for a personal computer?" | ||
57 | The master coughed and shifted his position slightly. "The lesson is | ||
58 | over for today," he said. | ||
59 | . | ||
60 | MAIL FROM:<gray@gnu.org> | ||
61 | RCPT TO:<polak@gnu.org> | ||
62 | DATA | ||
63 | From: <gray@gnu.org> | ||
64 | To: <polak@gnu.org> | ||
65 | Subject: The Tao of Programming, Part III | ||
66 | |||
67 | A novice asked the Master: "Here is a programmer that never designs, | ||
68 | documents, or tests his programs. Yet all who know him consider him one of | ||
69 | the best programmers in the world. Why is this?" | ||
70 | The Master replies: "That programmer has mastered the Tao. He has | ||
71 | gone beyond the need for design; he does not become angry when the system | ||
72 | crashes, but accepts the universe without concern. He has gone beyond the | ||
73 | need for documentation; he no longer cares if anyone else sees his code. He | ||
74 | has gone beyond the need for testing; each of his programs are perfect within | ||
75 | themselves, serene and elegant, their purpose self-evident. Truly, he has | ||
76 | entered the mystery of the Tao." | ||
77 | . | ||
78 | QUIT | ||
79 | ]) | ||
80 | AT_CHECK([ | ||
81 | anubis --norc --relax-perm-check --altrc etc/empty.rc --stdio < input | tr -d '\r' | ||
82 | ], | ||
83 | [0], | ||
84 | [220 localhost ([GNU Anubis v]AT_PACKAGE_VERSION) bitbucket ready | ||
85 | 250 pleased to meet you | ||
86 | 250 Sender OK | ||
87 | 250 Recipient OK | ||
88 | 354 Enter mail, end with "." on a line by itself | ||
89 | 250 Mail accepted for delivery | ||
90 | 250 Sender OK | ||
91 | 250 Recipient OK | ||
92 | 354 Enter mail, end with "." on a line by itself | ||
93 | 250 Mail accepted for delivery | ||
94 | 250 Sender OK | ||
95 | 250 Recipient OK | ||
96 | 354 Enter mail, end with "." on a line by itself | ||
97 | 250 Mail accepted for delivery | ||
98 | 221 Done | ||
99 | ], | ||
100 | [ignore]) | ||
101 | AT_CLEANUP | ||