aboutsummaryrefslogtreecommitdiff
path: root/tests/mult.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mult.at')
-rw-r--r--tests/mult.at101
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/>.
16AT_SETUP([Send multiple messages unchanged])
17AT_ANUBIS_CONFIG([empty.rc],[
18BEGIN CONTROL
19logfile $PWD/etc/anubis.log
20local-mta $abs_builddir/mta -bs -d $PWD/etc/mta.log
21use-pam no
22END
23])
24AT_DATA([input],
25[HELO localhost
26MAIL FROM:<gray@gnu.org>
27RCPT TO:<polak@gnu.org>
28DATA
29From: <gray@gnu.org>
30To: <polak@gnu.org>
31Subject: The Tao of Programming, Part I
32
33 A manger went to his programmers and told them: "As regards to your
34work hours: you are going to have to come in at nine in the morning and leave
35at five in the afternoon." At this, all of them became angry and several
36resigned on the spot.
37 So the manager said: "All right, in that case you may set your own
38working hours, as long as you finish your projects on schedule." The
39programmers, now satisfied, began to come in a noon and work to the wee
40hours of the morning.
41.
42MAIL FROM:<gray@gnu.org>
43RCPT TO:<polak@gnu.org>
44DATA
45From: <gray@gnu.org>
46To: <polak@gnu.org>
47Subject: 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,"
51said 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
58over for today," he said.
59.
60MAIL FROM:<gray@gnu.org>
61RCPT TO:<polak@gnu.org>
62DATA
63From: <gray@gnu.org>
64To: <polak@gnu.org>
65Subject: The Tao of Programming, Part III
66
67 A novice asked the Master: "Here is a programmer that never designs,
68documents, or tests his programs. Yet all who know him consider him one of
69the best programmers in the world. Why is this?"
70 The Master replies: "That programmer has mastered the Tao. He has
71gone beyond the need for design; he does not become angry when the system
72crashes, but accepts the universe without concern. He has gone beyond the
73need for documentation; he no longer cares if anyone else sees his code. He
74has gone beyond the need for testing; each of his programs are perfect within
75themselves, serene and elegant, their purpose self-evident. Truly, he has
76entered the mystery of the Tao."
77.
78QUIT
79])
80AT_CHECK([
81anubis --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
85250 pleased to meet you
86250 Sender OK
87250 Recipient OK
88354 Enter mail, end with "." on a line by itself
89250 Mail accepted for delivery
90250 Sender OK
91250 Recipient OK
92354 Enter mail, end with "." on a line by itself
93250 Mail accepted for delivery
94250 Sender OK
95250 Recipient OK
96354 Enter mail, end with "." on a line by itself
97250 Mail accepted for delivery
98221 Done
99],
100[ignore])
101AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.