1# This file is part of GNU Anubis testsuite. 2# Copyright (C) 2003-2014 The Anubis Team. 3# 4# GNU Anubis is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 2 of the License, or 7# (at your option) 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 15# along with GNU Anubis; if not, write to the Free Software Foundation, 16# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 18:TEST Sending several messages in a single connection 19:MODE SPAWN 20:OPTIONS --stdio 21:RCFILE empty.rc 22:RETCODE 0 23:PATTERN 24:EXPECT 220 25HELO localhost 26:EXPECT 250 27MAIL FROM:<gray@gnu.org> 28:EXPECT 250 29RCPT TO:<polak@gnu.org> 30:EXPECT 250 31DATA 32:EXPECT 354 33From: <gray@gnu.org> 34To: <polak@gnu.org> 35Subject: The Tao of Programming, Part I 36 37 A manger went to his programmers and told them: "As regards to your 38work hours: you are going to have to come in at nine in the morning and leave 39at five in the afternoon." At this, all of them became angry and several 40resigned on the spot. 41 So the manager said: "All right, in that case you may set your own 42working hours, as long as you finish your projects on schedule." The 43programmers, now satisfied, began to come in a noon and work to the wee 44hours of the morning. 45. 46:EXPECT 250 47MAIL FROM:<gray@gnu.org> 48:EXPECT 250 49RCPT TO:<polak@gnu.org> 50:EXPECT 250 51DATA 52:EXPECT 354 53From: <gray@gnu.org> 54To: <polak@gnu.org> 55Subject: The Tao of Programming, Part II 56 57 A master was explaining the nature of the Tao to one of his novices, 58"The Tao is embodied in all software -- regardless of how insignificant," 59said the master. 60 "Is the Tao in a hand-held calculator?" asked the novice. 61 "It is," came the reply. 62 "Is the Tao in a video game?" continued the novice. 63 "It is even in a video game," said the master. 64 "And is the Tao in the DOS for a personal computer?" 65 The master coughed and shifted his position slightly. "The lesson is 66over for today," he said. 67. 68:EXPECT 250 69MAIL FROM:<gray@gnu.org> 70:EXPECT 250 71RCPT TO:<polak@gnu.org> 72:EXPECT 250 73DATA 74:EXPECT 354 75From: <gray@gnu.org> 76To: <polak@gnu.org> 77Subject: The Tao of Programming, Part III 78 79 A novice asked the Master: "Here is a programmer that never designs, 80documents, or tests his programs. Yet all who know him consider him one of 81the best programmers in the world. Why is this?" 82 The Master replies: "That programmer has mastered the Tao. He has 83gone beyond the need for design; he does not become angry when the system 84crashes, but accepts the universe without concern. He has gone beyond the 85need for documentation; he no longer cares if anyone else sees his code. He 86has gone beyond the need for testing; each of his programs are perfect within 87themselves, serene and elegant, their purpose self-evident. Truly, he has 88entered the mystery of the Tao." 89. 90:EXPECT 250 91QUIT 92:EXPECT 221 93:END PATTERN 94:END TEST 95