Rewrite readmsg testsuite in Autotest.
* configure.ac: Add readmsg/tests/ * readmsg/Makefile.am: New file. * readmsg/tests/.gitignore: New file. * readmsg/tests/Makefile.am: New file. * readmsg/tests/all.at: New file. * readmsg/tests/atlocal.in: New file. * readmsg/tests/hdr.at: New file. * readmsg/tests/nohdr.at: New file. * readmsg/tests/testsuite.at: New file. * readmsg/tests/twomsg.at: New file. * readmsg/tests/weed.at: New file. * readmsg/testsuite: Remove. * testsuite/testsuite.inc (AT_SKIP_TEST): New macro. * testsuite/spool/mbox1: Remove trailing whitespace after Received headers. * imap4d/testsuite/imap4d/fetch.exp: Reflece changes in mbox1. * mail/testsuite/mail/read.exp: Likewise. * mail/testsuite/mail/write.exp: Likewise. * mailbox/testsuite/Mime: Likewise.
Showing
24 changed files
with
576 additions
and
166 deletions
... | @@ -1213,6 +1213,8 @@ AC_ARG_WITH([mh-bindir], | ... | @@ -1213,6 +1213,8 @@ AC_ARG_WITH([mh-bindir], |
1213 | AC_CONFIG_TESTDIR(tests) | 1213 | AC_CONFIG_TESTDIR(tests) |
1214 | AC_CONFIG_FILES([frm/tests/Makefile | 1214 | AC_CONFIG_FILES([frm/tests/Makefile |
1215 | frm/tests/atlocal | 1215 | frm/tests/atlocal |
1216 | readmsg/tests/Makefile | ||
1217 | readmsg/tests/atlocal | ||
1216 | sieve/tests/Makefile | 1218 | sieve/tests/Makefile |
1217 | sieve/tests/atlocal]) | 1219 | sieve/tests/atlocal]) |
1218 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) | 1220 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
... | @@ -1373,7 +1375,6 @@ AC_CONFIG_FILES([ | ... | @@ -1373,7 +1375,6 @@ AC_CONFIG_FILES([ |
1373 | python/libmu_py/Makefile | 1375 | python/libmu_py/Makefile |
1374 | python/mailutils/Makefile | 1376 | python/mailutils/Makefile |
1375 | readmsg/Makefile | 1377 | readmsg/Makefile |
1376 | readmsg/testsuite/Makefile | ||
1377 | mu-aux/Makefile | 1378 | mu-aux/Makefile |
1378 | mu-aux/mailutils.spec | 1379 | mu-aux/mailutils.spec |
1379 | sieve/Makefile | 1380 | sieve/Makefile | ... | ... |
... | @@ -38,9 +38,7 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac | ... | @@ -38,9 +38,7 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
38 | ## Test suite. ## | 38 | ## Test suite. ## |
39 | ## ------------ ## | 39 | ## ------------ ## |
40 | 40 | ||
41 | TESTSUITE_AT = \ | 41 | TESTSUITE_AT = testsuite.at |
42 | testsuite.at\ | ||
43 | version.at | ||
44 | 42 | ||
45 | TESTSUITE = $(srcdir)/testsuite | 43 | TESTSUITE = $(srcdir)/testsuite |
46 | M4=m4 | 44 | M4=m4 | ... | ... |
... | @@ -78,11 +78,11 @@ imap4d_test "FETCH 1:* ENVELOPE"\ | ... | @@ -78,11 +78,11 @@ imap4d_test "FETCH 1:* ENVELOPE"\ |
78 | # RFC822.SIZE ENVELOPE) | 78 | # RFC822.SIZE ENVELOPE) |
79 | 79 | ||
80 | imap4d_test "FETCH 1:\* ALL"\ | 80 | imap4d_test "FETCH 1:\* ALL"\ |
81 | "1 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1299 ENVELOPE (\"Fri, 28 Dec 2001 22:18:08 +0200\" \"Jabberwocky\" ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) NIL NIL NIL \"<200112282018.fBSKI8N04906@nonexistent.net>\"))"\ | 81 | "1 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1298 ENVELOPE (\"Fri, 28 Dec 2001 22:18:08 +0200\" \"Jabberwocky\" ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) NIL NIL NIL \"<200112282018.fBSKI8N04906@nonexistent.net>\"))"\ |
82 | "2 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 23:28:09 +0000\" RFC822.SIZE 548 ENVELOPE (\"Fri, 28 Dec 2001 23:28:08 +0200\" \"Re: Jabberwocky\" ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200112232808.fERKR9N16790@dontmailme.org>\"))"\ | 82 | "2 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 23:28:09 +0000\" RFC822.SIZE 547 ENVELOPE (\"Fri, 28 Dec 2001 23:28:08 +0200\" \"Re: Jabberwocky\" ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200112232808.fERKR9N16790@dontmailme.org>\"))"\ |
83 | "3 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 1668 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Simple MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122143.g6CLhIb05086@Mirddin.farlep.net>\"))"\ | 83 | "3 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 1667 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Simple MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122143.g6CLhIb05086@Mirddin.farlep.net>\"))"\ |
84 | "4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3568 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122150.g6CLowb05126@Mirddin.farlep.net>\"))"\ | 84 | "4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3567 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122150.g6CLowb05126@Mirddin.farlep.net>\"))"\ |
85 | "5 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 941 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Empty MIME Parts\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122143.g6CLhIb05086@Mirddin.farlep.net>\"))"\ | 85 | "5 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 940 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Empty MIME Parts\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122143.g6CLhIb05086@Mirddin.farlep.net>\"))"\ |
86 | "OK" | 86 | "OK" |
87 | 87 | ||
88 | # BODYSTRUCTURE The [MIME-IMB] body structure of the message. This | 88 | # BODYSTRUCTURE The [MIME-IMB] body structure of the message. This |
... | @@ -124,9 +124,9 @@ imap4d_test "FETCH 1:* BODY"\ | ... | @@ -124,9 +124,9 @@ imap4d_test "FETCH 1:* BODY"\ |
124 | # implicitly set the \Seen flag. | 124 | # implicitly set the \Seen flag. |
125 | 125 | ||
126 | imap4d_test "FETCH 1 BODY.PEEK\[HEADER\]"\ | 126 | imap4d_test "FETCH 1 BODY.PEEK\[HEADER\]"\ |
127 | "1 FETCH (BODY\[HEADER\] {327}"\ | 127 | "1 FETCH (BODY\[HEADER\] {326}"\ |
128 | -literal\ | 128 | -literal\ |
129 | "Received: (from foobar@nonexistent.net) "\ | 129 | "Received: (from foobar@nonexistent.net)"\ |
130 | " by nonexistent.net id fBSKI8N04906"\ | 130 | " by nonexistent.net id fBSKI8N04906"\ |
131 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 131 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
132 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 132 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -144,9 +144,9 @@ imap4d_test "FETCH 1 BODY.PEEK\[HEADER\]"\ | ... | @@ -144,9 +144,9 @@ imap4d_test "FETCH 1 BODY.PEEK\[HEADER\]"\ |
144 | # MESSAGE/RFC822 message. | 144 | # MESSAGE/RFC822 message. |
145 | 145 | ||
146 | imap4d_test "FETCH 1 BODY\[HEADER\]"\ | 146 | imap4d_test "FETCH 1 BODY\[HEADER\]"\ |
147 | "1 FETCH (FLAGS (\\Seen) BODY\[HEADER\] {327}"\ | 147 | "1 FETCH (FLAGS (\\Seen) BODY\[HEADER\] {326}"\ |
148 | -literal\ | 148 | -literal\ |
149 | "Received: (from foobar@nonexistent.net) "\ | 149 | "Received: (from foobar@nonexistent.net)"\ |
150 | " by nonexistent.net id fBSKI8N04906"\ | 150 | " by nonexistent.net id fBSKI8N04906"\ |
151 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 151 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
152 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 152 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -179,9 +179,9 @@ imap4d_test "FETCH 1 BODY\[HEADER.FIELDS (FROM TO SUBJECT)\]"\ | ... | @@ -179,9 +179,9 @@ imap4d_test "FETCH 1 BODY\[HEADER.FIELDS (FROM TO SUBJECT)\]"\ |
179 | # the header fields with a non-matching field-name. | 179 | # the header fields with a non-matching field-name. |
180 | 180 | ||
181 | imap4d_test "FETCH 1 BODY\[HEADER.FIELDS.NOT (FROM TO SUBJECT)\]"\ | 181 | imap4d_test "FETCH 1 BODY\[HEADER.FIELDS.NOT (FROM TO SUBJECT)\]"\ |
182 | "1 FETCH (BODY\[HEADER.FIELDS.NOT (FROM TO SUBJECT)\] {235}"\ | 182 | "1 FETCH (BODY\[HEADER.FIELDS.NOT (FROM TO SUBJECT)\] {234}"\ |
183 | -literal\ | 183 | -literal\ |
184 | "Received: (from foobar@nonexistent.net) "\ | 184 | "Received: (from foobar@nonexistent.net)"\ |
185 | " by nonexistent.net id fBSKI8N04906"\ | 185 | " by nonexistent.net id fBSKI8N04906"\ |
186 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 186 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
187 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 187 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -419,9 +419,9 @@ imap4d_test "STORE 1:* -FLAGS (\\Seen)"\ | ... | @@ -419,9 +419,9 @@ imap4d_test "STORE 1:* -FLAGS (\\Seen)"\ |
419 | # is returned). | 419 | # is returned). |
420 | 420 | ||
421 | imap4d_test "FETCH 1 RFC822"\ | 421 | imap4d_test "FETCH 1 RFC822"\ |
422 | "1 FETCH (FLAGS (\\Seen) RFC822 {1299}"\ | 422 | "1 FETCH (FLAGS (\\Seen) RFC822 {1298}"\ |
423 | -literal\ | 423 | -literal\ |
424 | "Received: (from foobar@nonexistent.net) "\ | 424 | "Received: (from foobar@nonexistent.net)"\ |
425 | " by nonexistent.net id fBSKI8N04906"\ | 425 | " by nonexistent.net id fBSKI8N04906"\ |
426 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 426 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
427 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 427 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -473,9 +473,9 @@ imap4d_test "FETCH 1 RFC822"\ | ... | @@ -473,9 +473,9 @@ imap4d_test "FETCH 1 RFC822"\ |
473 | # FETCH data (RFC822.HEADER is returned). | 473 | # FETCH data (RFC822.HEADER is returned). |
474 | 474 | ||
475 | imap4d_test "FETCH 2 RFC822.HEADER"\ | 475 | imap4d_test "FETCH 2 RFC822.HEADER"\ |
476 | "2 FETCH (RFC822.HEADER {329}"\ | 476 | "2 FETCH (RFC822.HEADER {328}"\ |
477 | -literal\ | 477 | -literal\ |
478 | "Received: (from bar@dontmailme.org) "\ | 478 | "Received: (from bar@dontmailme.org)"\ |
479 | " by dontmailme.org id fERKR9N16790"\ | 479 | " by dontmailme.org id fERKR9N16790"\ |
480 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ | 480 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ |
481 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ | 481 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ |
... | @@ -490,7 +490,7 @@ imap4d_test "FETCH 2 RFC822.HEADER"\ | ... | @@ -490,7 +490,7 @@ imap4d_test "FETCH 2 RFC822.HEADER"\ |
490 | # RFC822.SIZE The [RFC-822] size of the message. | 490 | # RFC822.SIZE The [RFC-822] size of the message. |
491 | 491 | ||
492 | imap4d_test "FETCH 3 RFC822.SIZE"\ | 492 | imap4d_test "FETCH 3 RFC822.SIZE"\ |
493 | "3 FETCH (RFC822.SIZE 1668)"\ | 493 | "3 FETCH (RFC822.SIZE 1667)"\ |
494 | "OK" | 494 | "OK" |
495 | 495 | ||
496 | # RFC822.TEXT Functionally equivalent to BODY[TEXT], differing in | 496 | # RFC822.TEXT Functionally equivalent to BODY[TEXT], differing in |
... | @@ -510,14 +510,14 @@ imap4d_test "FETCH 2 RFC822.TEXT"\ | ... | @@ -510,14 +510,14 @@ imap4d_test "FETCH 2 RFC822.TEXT"\ |
510 | # RFC822.SIZE) | 510 | # RFC822.SIZE) |
511 | 511 | ||
512 | imap4d_test "FETCH 1 FAST" \ | 512 | imap4d_test "FETCH 1 FAST" \ |
513 | "1 FETCH (FLAGS (\\Seen \\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1299)"\ | 513 | "1 FETCH (FLAGS (\\Seen \\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1298)"\ |
514 | "OK" | 514 | "OK" |
515 | 515 | ||
516 | # FULL Macro equivalent to: (FLAGS INTERNALDATE | 516 | # FULL Macro equivalent to: (FLAGS INTERNALDATE |
517 | # RFC822.SIZE ENVELOPE BODY) | 517 | # RFC822.SIZE ENVELOPE BODY) |
518 | 518 | ||
519 | imap4d_test "FETCH 4 FULL"\ | 519 | imap4d_test "FETCH 4 FULL"\ |
520 | "4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3568 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122150.g6CLowb05126@Mirddin.farlep.net>\") BODY ((\"text\" \"plain\" (\"name\" \"msg.21\" \"charset\" \"us-ascii\") \"<5122.1026510654.2@Mirddin.farlep.net>\" \"Father William Part I\" \"7BIT\" 351 10)((\"application\" \"octet-stream\" (\"name\" \"msg.22\") \"<5122.1026510654.4@Mirddin.farlep.net>\" \"Father William Part II\" \"base64\" 486)((\"application\" \"octet-stream\" (\"name\" \"msg.23\") \"<5122.1026510654.6@Mirddin.farlep.net>\" \"Father William Part III\" \"base64\" 490)(\"application\" \"octet-stream\" (\"name\" \"msg.24\") \"<5122.1026510654.7@Mirddin.farlep.net>\" \"Father William Part IV\" \"base64\" 502) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL))"\ | 520 | "4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3567 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"Mirddin.farlep.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<200207122150.g6CLowb05126@Mirddin.farlep.net>\") BODY ((\"text\" \"plain\" (\"name\" \"msg.21\" \"charset\" \"us-ascii\") \"<5122.1026510654.2@Mirddin.farlep.net>\" \"Father William Part I\" \"7BIT\" 351 10)((\"application\" \"octet-stream\" (\"name\" \"msg.22\") \"<5122.1026510654.4@Mirddin.farlep.net>\" \"Father William Part II\" \"base64\" 486)((\"application\" \"octet-stream\" (\"name\" \"msg.23\") \"<5122.1026510654.6@Mirddin.farlep.net>\" \"Father William Part III\" \"base64\" 490)(\"application\" \"octet-stream\" (\"name\" \"msg.24\") \"<5122.1026510654.7@Mirddin.farlep.net>\" \"Father William Part IV\" \"base64\" 502) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL))"\ |
521 | "OK" | 521 | "OK" |
522 | 522 | ||
523 | imap4d_stop | 523 | imap4d_stop | ... | ... |
... | @@ -27,21 +27,21 @@ mail_command "set readonly" | ... | @@ -27,21 +27,21 @@ mail_command "set readonly" |
27 | # line and a delimiter line between headers and the body. Thus, number | 27 | # line and a delimiter line between headers and the body. Thus, number |
28 | # of lines is always two less then reported by BSD mail. | 28 | # of lines is always two less then reported by BSD mail. |
29 | mail_test "size *" \ | 29 | mail_test "size *" \ |
30 | "> 1 44/1255 "\ | 30 | "> 1 44/1254 "\ |
31 | " 2 13/535 "\ | 31 | " 2 13/534 "\ |
32 | " 3 42/1626 "\ | 32 | " 3 42/1625 "\ |
33 | " 4 84/3484 " | 33 | " 4 84/3483 " |
34 | 34 | ||
35 | ########################################################################### | 35 | ########################################################################### |
36 | # `headers' and `print' | 36 | # `headers' and `print' |
37 | mail_test "headers" \ | 37 | mail_test "headers" \ |
38 | ">N 1 Foo Bar Fri Dec 28 22:18 44/1255 Jabberwocky" \ | 38 | ">N 1 Foo Bar Fri Dec 28 22:18 44/1254 Jabberwocky" \ |
39 | " N 2 Bar Fri Dec 28 23:28 13/535 Re: Jabberwocky" \ | 39 | " N 2 Bar Fri Dec 28 23:28 13/534 Re: Jabberwocky" \ |
40 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1626 Simple MIME" \ | 40 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1625 Simple MIME" \ |
41 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3484 Nested MIME" \ | 41 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3483 Nested MIME" \ |
42 | 42 | ||
43 | mail_test "print"\ | 43 | mail_test "print"\ |
44 | "Received: (from foobar@nonexistent.net) "\ | 44 | "Received: (from foobar@nonexistent.net)"\ |
45 | " by nonexistent.net id fBSKI8N04906"\ | 45 | " by nonexistent.net id fBSKI8N04906"\ |
46 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 46 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
47 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 47 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -87,7 +87,7 @@ mail_test "print"\ | ... | @@ -87,7 +87,7 @@ mail_test "print"\ |
87 | 87 | ||
88 | # Initially, `Print' must yield the same output as `print' | 88 | # Initially, `Print' must yield the same output as `print' |
89 | mail_test "Print"\ | 89 | mail_test "Print"\ |
90 | "Received: (from foobar@nonexistent.net) "\ | 90 | "Received: (from foobar@nonexistent.net)"\ |
91 | " by nonexistent.net id fBSKI8N04906"\ | 91 | " by nonexistent.net id fBSKI8N04906"\ |
92 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 92 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
93 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 93 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -135,7 +135,7 @@ mail_test "Print"\ | ... | @@ -135,7 +135,7 @@ mail_test "Print"\ |
135 | # Test the `top' command | 135 | # Test the `top' command |
136 | 136 | ||
137 | mail_test "top" \ | 137 | mail_test "top" \ |
138 | "Received: (from foobar@nonexistent.net) "\ | 138 | "Received: (from foobar@nonexistent.net)"\ |
139 | " by nonexistent.net id fBSKI8N04906"\ | 139 | " by nonexistent.net id fBSKI8N04906"\ |
140 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ | 140 | " for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\ |
141 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ | 141 | "Date: Fri, 28 Dec 2001 22:18:08 +0200"\ |
... | @@ -158,16 +158,16 @@ mail_test -message "top (2)" "top" \ | ... | @@ -158,16 +158,16 @@ mail_test -message "top (2)" "top" \ |
158 | # This checks if `headers' correctly reflects 'read' attribute | 158 | # This checks if `headers' correctly reflects 'read' attribute |
159 | 159 | ||
160 | mail_test -message "headers (2)" "headers" \ | 160 | mail_test -message "headers (2)" "headers" \ |
161 | ">R 1 Foo Bar Fri Dec 28 22:18 44/1255 Jabberwocky" \ | 161 | ">R 1 Foo Bar Fri Dec 28 22:18 44/1254 Jabberwocky" \ |
162 | " N 2 Bar Fri Dec 28 23:28 13/535 Re: Jabberwocky" \ | 162 | " N 2 Bar Fri Dec 28 23:28 13/534 Re: Jabberwocky" \ |
163 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1626 Simple MIME" \ | 163 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1625 Simple MIME" \ |
164 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3484 Nested MIME" \ | 164 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3483 Nested MIME" \ |
165 | 165 | ||
166 | ########################################################################### | 166 | ########################################################################### |
167 | # `next' should display the 2nd message | 167 | # `next' should display the 2nd message |
168 | 168 | ||
169 | mail_test "next" \ | 169 | mail_test "next" \ |
170 | "Received: (from bar@dontmailme.org) "\ | 170 | "Received: (from bar@dontmailme.org)"\ |
171 | " by dontmailme.org id fERKR9N16790"\ | 171 | " by dontmailme.org id fERKR9N16790"\ |
172 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ | 172 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ |
173 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ | 173 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ |
... | @@ -185,10 +185,10 @@ mail_test "next" \ | ... | @@ -185,10 +185,10 @@ mail_test "next" \ |
185 | # Now check if the cursor is placed correctly | 185 | # Now check if the cursor is placed correctly |
186 | 186 | ||
187 | mail_test -message "headers (3)" "headers" \ | 187 | mail_test -message "headers (3)" "headers" \ |
188 | " R 1 Foo Bar Fri Dec 28 22:18 44/1255 Jabberwocky" \ | 188 | " R 1 Foo Bar Fri Dec 28 22:18 44/1254 Jabberwocky" \ |
189 | ">R 2 Bar Fri Dec 28 23:28 13/535 Re: Jabberwocky" \ | 189 | ">R 2 Bar Fri Dec 28 23:28 13/534 Re: Jabberwocky" \ |
190 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1626 Simple MIME" \ | 190 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1625 Simple MIME" \ |
191 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3484 Nested MIME" \ | 191 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3483 Nested MIME" \ |
192 | 192 | ||
193 | ########################################################################### | 193 | ########################################################################### |
194 | # Check for `prev' | 194 | # Check for `prev' |
... | @@ -212,16 +212,16 @@ mail_test "prev"\ | ... | @@ -212,16 +212,16 @@ mail_test "prev"\ |
212 | # `headers' again | 212 | # `headers' again |
213 | 213 | ||
214 | mail_test -message "headers (4)" "headers" \ | 214 | mail_test -message "headers (4)" "headers" \ |
215 | ">R 1 Foo Bar Fri Dec 28 22:18 44/1255 Jabberwocky" \ | 215 | ">R 1 Foo Bar Fri Dec 28 22:18 44/1254 Jabberwocky" \ |
216 | " R 2 Bar Fri Dec 28 23:28 13/535 Re: Jabberwocky" \ | 216 | " R 2 Bar Fri Dec 28 23:28 13/534 Re: Jabberwocky" \ |
217 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1626 Simple MIME" \ | 217 | " N 3 Sergey Poznyakoff Sat Jul 13 00:43 42/1625 Simple MIME" \ |
218 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3484 Nested MIME" \ | 218 | " N 4 Sergey Poznyakoff Sat Jul 13 00:50 84/3483 Nested MIME" \ |
219 | 219 | ||
220 | ########################################################################### | 220 | ########################################################################### |
221 | # print with an argument | 221 | # print with an argument |
222 | 222 | ||
223 | mail_test -message "print (2)" "print 2"\ | 223 | mail_test -message "print (2)" "print 2"\ |
224 | "Received: (from bar@dontmailme.org) "\ | 224 | "Received: (from bar@dontmailme.org)"\ |
225 | " by dontmailme.org id fERKR9N16790"\ | 225 | " by dontmailme.org id fERKR9N16790"\ |
226 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ | 226 | " for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200"\ |
227 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ | 227 | "Date: Fri, 28 Dec 2001 23:28:08 +0200"\ | ... | ... |
... | @@ -42,16 +42,16 @@ mail_test "delete" "No applicable messages" | ... | @@ -42,16 +42,16 @@ mail_test "delete" "No applicable messages" |
42 | # Start again using the same mailbox | 42 | # Start again using the same mailbox |
43 | mail_start -reuse-spool "--file=%mbox1" | 43 | mail_start -reuse-spool "--file=%mbox1" |
44 | mail_test "h" \ | 44 | mail_test "h" \ |
45 | ">U 1 Bar Fri Dec 28 23:28 16/579 Re: Jabberwocky"\ | 45 | ">U 1 Bar Fri Dec 28 23:28 16/578 Re: Jabberwocky"\ |
46 | " U 2 Sergey Poznyakoff Sat Jul 13 00:43 44/1645 Simple MIME"\ | 46 | " U 2 Sergey Poznyakoff Sat Jul 13 00:43 44/1644 Simple MIME"\ |
47 | " U 3 Sergey Poznyakoff Sat Jul 13 00:43 29/933 Empty MIME Parts" | 47 | " U 3 Sergey Poznyakoff Sat Jul 13 00:43 29/932 Empty MIME Parts" |
48 | 48 | ||
49 | # Send first message to mbox... | 49 | # Send first message to mbox... |
50 | mail_command "mbox 1" | 50 | mail_command "mbox 1" |
51 | mail_test "h" \ | 51 | mail_test "h" \ |
52 | ">M 1 Bar Fri Dec 28 23:28 16/579 Re: Jabberwocky"\ | 52 | ">M 1 Bar Fri Dec 28 23:28 16/578 Re: Jabberwocky"\ |
53 | " U 2 Sergey Poznyakoff Sat Jul 13 00:43 44/1645 Simple MIME"\ | 53 | " U 2 Sergey Poznyakoff Sat Jul 13 00:43 44/1644 Simple MIME"\ |
54 | " U 3 Sergey Poznyakoff Sat Jul 13 00:43 29/933 Empty MIME Parts" | 54 | " U 3 Sergey Poznyakoff Sat Jul 13 00:43 29/932 Empty MIME Parts" |
55 | 55 | ||
56 | # ... and quit | 56 | # ... and quit |
57 | mail_test -noprompt "quit" \ | 57 | mail_test -noprompt "quit" \ |
... | @@ -62,16 +62,16 @@ mail_test -noprompt "quit" \ | ... | @@ -62,16 +62,16 @@ mail_test -noprompt "quit" \ |
62 | mail_start -reuse-spool "--file=%mbox" | 62 | mail_start -reuse-spool "--file=%mbox" |
63 | mail_test "headers" \ | 63 | mail_test "headers" \ |
64 | ">N 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ | 64 | ">N 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ |
65 | " U 2 Bar Fri Dec 28 23:28 16/579 Re: Jabberwocky" | 65 | " U 2 Bar Fri Dec 28 23:28 16/578 Re: Jabberwocky" |
66 | 66 | ||
67 | # Save messages to the third mailbox | 67 | # Save messages to the third mailbox |
68 | mail_command "set folder=\"$MU_FOLDER_DIR\"" | 68 | mail_command "set folder=\"$MU_FOLDER_DIR\"" |
69 | mail_test "save 1 2 +three" \ | 69 | mail_test "save 1 2 +three" \ |
70 | "\"$MU_FOLDER_DIR/three\" 28/1004" | 70 | "\"$MU_FOLDER_DIR/three\" 28/1003" |
71 | 71 | ||
72 | mail_test "headers" \ | 72 | mail_test "headers" \ |
73 | ">* 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ | 73 | ">* 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ |
74 | " * 2 Bar Fri Dec 28 23:28 16/579 Re: Jabberwocky" | 74 | " * 2 Bar Fri Dec 28 23:28 16/578 Re: Jabberwocky" |
75 | 75 | ||
76 | mail_test -noprompt "quit" \ | 76 | mail_test -noprompt "quit" \ |
77 | "Held 2 messages in $MU_SPOOL_DIR/mbox" | 77 | "Held 2 messages in $MU_SPOOL_DIR/mbox" |
... | @@ -80,7 +80,7 @@ mail_test -noprompt "quit" \ | ... | @@ -80,7 +80,7 @@ mail_test -noprompt "quit" \ |
80 | mail_start -reuse-spool "--file=$MU_FOLDER_DIR/three" | 80 | mail_start -reuse-spool "--file=$MU_FOLDER_DIR/three" |
81 | mail_test "headers" \ | 81 | mail_test "headers" \ |
82 | ">N 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ | 82 | ">N 1 Sergey Poznyakoff Tue Jul 16 12:11 12/425 MBOX"\ |
83 | " U 2 Bar Fri Dec 28 23:28 16/579 Re: Jabberwocky" | 83 | " U 2 Bar Fri Dec 28 23:28 16/578 Re: Jabberwocky" |
84 | 84 | ||
85 | # Test uppercase commands (Save and Copy) | 85 | # Test uppercase commands (Save and Copy) |
86 | mail_command "set outfolder=\"$MU_FOLDER_DIR\"" | 86 | mail_command "set outfolder=\"$MU_FOLDER_DIR\"" | ... | ... |
... | @@ -21,9 +21,9 @@ Message: 1 | ... | @@ -21,9 +21,9 @@ Message: 1 |
21 | From: Foo Bar <foobar@nonexistent.net> | 21 | From: Foo Bar <foobar@nonexistent.net> |
22 | Subject: Jabberwocky | 22 | Subject: Jabberwocky |
23 | Number of parts in message - 1 | 23 | Number of parts in message - 1 |
24 | Total message size - 1255/44 | 24 | Total message size - 1254/44 |
25 | Type of part 1 = | 25 | Type of part 1 = |
26 | Message part size - 1255/44: 318/9, 937/35 | 26 | Message part size - 1254/44: 317/9, 937/35 |
27 | Text Message | 27 | Text Message |
28 | Begin | 28 | Begin |
29 | `Twas brillig, and the slithy toves | 29 | `Twas brillig, and the slithy toves |
... | @@ -67,9 +67,9 @@ Message: 2 | ... | @@ -67,9 +67,9 @@ Message: 2 |
67 | From: Bar <bar@dontmailme.org> | 67 | From: Bar <bar@dontmailme.org> |
68 | Subject: Re: Jabberwocky | 68 | Subject: Re: Jabberwocky |
69 | Number of parts in message - 1 | 69 | Number of parts in message - 1 |
70 | Total message size - 535/13 | 70 | Total message size - 534/13 |
71 | Type of part 1 = | 71 | Type of part 1 = |
72 | Message part size - 535/13: 320/9, 215/4 | 72 | Message part size - 534/13: 319/9, 215/4 |
73 | Text Message | 73 | Text Message |
74 | Begin | 74 | Begin |
75 | It seems very pretty, but it's *rather* hard to understand!' | 75 | It seems very pretty, but it's *rather* hard to understand!' |
... | @@ -82,7 +82,7 @@ Message: 3 | ... | @@ -82,7 +82,7 @@ Message: 3 |
82 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | 82 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> |
83 | Subject: Simple MIME | 83 | Subject: Simple MIME |
84 | Number of parts in message - 2 | 84 | Number of parts in message - 2 |
85 | Total message size - 1626/42 | 85 | Total message size - 1625/42 |
86 | Type of part 1 = text/plain | 86 | Type of part 1 = text/plain |
87 | Message part size - 371/13: 141/4, 230/9 | 87 | Message part size - 371/13: 141/4, 230/9 |
88 | Text Message | 88 | Text Message |
... | @@ -118,7 +118,7 @@ Message: 4 | ... | @@ -118,7 +118,7 @@ Message: 4 |
118 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | 118 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> |
119 | Subject: Nested MIME | 119 | Subject: Nested MIME |
120 | Number of parts in message - 2 | 120 | Number of parts in message - 2 |
121 | Total message size - 3484/84 | 121 | Total message size - 3483/84 |
122 | Type of part 1 = text/plain | 122 | Type of part 1 = text/plain |
123 | Message part size - 496/14: 155/4, 341/10 | 123 | Message part size - 496/14: 155/4, 341/10 |
124 | Text Message | 124 | Text Message |
... | @@ -196,7 +196,7 @@ Message: 5 | ... | @@ -196,7 +196,7 @@ Message: 5 |
196 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | 196 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> |
197 | Subject: Empty MIME Parts | 197 | Subject: Empty MIME Parts |
198 | Number of parts in message - 2 | 198 | Number of parts in message - 2 |
199 | Total message size - 914/27 | 199 | Total message size - 913/27 |
200 | Type of part 1 = text/plain | 200 | Type of part 1 = text/plain |
201 | Message part size - 143/4: 143/4, 0/0 | 201 | Message part size - 143/4: 143/4, 0/0 |
202 | Text Message | 202 | Text Message | ... | ... |
... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
20 | 20 | ||
21 | INCLUDES = @MU_APP_COMMON_INCLUDES@ | 21 | INCLUDES = @MU_APP_COMMON_INCLUDES@ |
22 | 22 | ||
23 | SUBDIRS = testsuite | 23 | SUBDIRS = tests |
24 | 24 | ||
25 | bin_PROGRAMS = readmsg | 25 | bin_PROGRAMS = readmsg |
26 | readmsg_SOURCES = readmsg.c msglist.c readmsg.h | 26 | readmsg_SOURCES = readmsg.c msglist.c readmsg.h | ... | ... |
readmsg/tests/.gitignore
0 → 100644
readmsg/tests/Makefile.am
0 → 100644
1 | # This file is part of GNU Mailutils. | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 | ||
18 | DISTCLEANFILES = atconfig $(check_SCRIPTS) | ||
19 | MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) | ||
20 | |||
21 | ## ------------ ## | ||
22 | ## package.m4. ## | ||
23 | ## ------------ ## | ||
24 | |||
25 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac | ||
26 | { \ | ||
27 | echo '# Signature of the current package.'; \ | ||
28 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ | ||
29 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ | ||
30 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ | ||
31 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ | ||
32 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ | ||
33 | } >$(srcdir)/package.m4 | ||
34 | |||
35 | # | ||
36 | |||
37 | ## ------------ ## | ||
38 | ## Test suite. ## | ||
39 | ## ------------ ## | ||
40 | |||
41 | TESTSUITE_AT = \ | ||
42 | all.at\ | ||
43 | testsuite.at | ||
44 | |||
45 | TESTSUITE = $(srcdir)/testsuite | ||
46 | M4=m4 | ||
47 | |||
48 | AUTOTEST = $(AUTOM4TE) --language=autotest | ||
49 | $(TESTSUITE): package.m4 $(TESTSUITE_AT) | ||
50 | $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/testsuite testsuite.at -o $@.tmp | ||
51 | $(AM_V_at)mv $@.tmp $@ | ||
52 | |||
53 | atconfig: $(top_builddir)/config.status | ||
54 | cd $(top_builddir) && ./config.status tests/$@ | ||
55 | |||
56 | clean-local: | ||
57 | @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean | ||
58 | |||
59 | check-local: atconfig atlocal $(TESTSUITE) | ||
60 | @$(SHELL) $(TESTSUITE) | ||
61 | |||
62 | # Run the test suite on the *installed* tree. | ||
63 | #installcheck-local: | ||
64 | # $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin | ||
65 | |||
66 |
readmsg/tests/all.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | READMSGTEST([readmsg *],[readmsg00], | ||
19 | ['*'], | ||
20 | [0], | ||
21 | [Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
22 | From: Foo Bar <foobar@nonexistent.net> | ||
23 | To: Bar <bar@dontmailme.org> | ||
24 | Subject: Jabberwocky | ||
25 | |||
26 | `Twas brillig, and the slithy toves | ||
27 | Did gyre and gimble in the wabe; | ||
28 | All mimsy were the borogoves, | ||
29 | And the mome raths outgrabe. | ||
30 | |||
31 | `Beware the Jabberwock, my son! | ||
32 | The jaws that bite, the claws that catch! | ||
33 | Beware the Jujub bird, and shun | ||
34 | The frumious Bandersnatch!' | ||
35 | |||
36 | He took his vorpal sword in hand: | ||
37 | Long time the manxome foe he sought -- | ||
38 | So rested he by the Tumtum gree, | ||
39 | And stood awhile in thought. | ||
40 | |||
41 | And as in uffish thought he stood, | ||
42 | The Jabberwock, with eyes of flame, | ||
43 | Came whiffling through the tulgey wook, | ||
44 | And burbled as it came! | ||
45 | |||
46 | One, two! One, two! And through and through | ||
47 | The vorpal blade went snicker-snack! | ||
48 | He left it dead, and with its head | ||
49 | He went galumphing back. | ||
50 | |||
51 | `And has thou slain the Jabberwock? | ||
52 | Come to my arms, my beamish boy! | ||
53 | O frabjous day! Calloh! Callay! | ||
54 | He chortled in his joy. | ||
55 | |||
56 | `Twas brillig, and the slithy toves | ||
57 | Did gyre and gimble in the wabe; | ||
58 | All mimsy were the borogoves, | ||
59 | And the mome raths outgrabe. | ||
60 | |||
61 | |||
62 | Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
63 | From: Bar <bar@dontmailme.org> | ||
64 | To: Foo Bar <foobar@nonexistent.net> | ||
65 | Subject: Re: Jabberwocky | ||
66 | |||
67 | It seems very pretty, but it's *rather* hard to understand!' | ||
68 | Somehow it seems to fill my head with ideas -- only I don't | ||
69 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
70 | that's clear, at any rate... | ||
71 | |||
72 | To: Foo Bar <foobar@nonexistent.net> | ||
73 | Subject: Simple MIME | ||
74 | Date: Sat, 13 Jul 2002 00:43:18 +0300 | ||
75 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
76 | |||
77 | ------- =_aaaaaaaaaa0 | ||
78 | Content-Type: text/plain; name="msg.1"; charset="us-ascii" | ||
79 | Content-ID: <5082.1026510189.1@Mirddin.farlep.net> | ||
80 | Content-Description: How doth | ||
81 | |||
82 | How doth the little crocodile | ||
83 | Improve his shining tail, | ||
84 | And pour the waters of the Nile | ||
85 | On every golden scale! | ||
86 | |||
87 | `How cheerfully he seems to grin, | ||
88 | How neatly spread his claws, | ||
89 | And welcome little fishes in | ||
90 | With gently smiling jaws! | ||
91 | |||
92 | ------- =_aaaaaaaaaa0 | ||
93 | Content-Type: application/octet-stream; name="msg.21" | ||
94 | Content-ID: <5082.1026510189.2@Mirddin.farlep.net> | ||
95 | Content-Description: Father William Part I | ||
96 | Content-Transfer-Encoding: base64 | ||
97 | |||
98 | YFlvdSBhcmUgb2xkLCBGYXRoZXIgV2lsbGlhbSwnIHRoZSB5b3VuZyBtYW4gc2FpZCwKYEFuZCB5 | ||
99 | b3VyIGhhaXIgaGFzIGJlY29tZSB2ZXJ5IHdoaXRlOwpBbmQgeWV0IHlvdSBpbmNlc3NhbnRseSBz | ||
100 | dGFuZCBvbiB5b3VyIGhlYWQtLQpEbyB5b3UgdGhpbmssIGF0IHlvdXIgYWdlLCBpdCBpcyByaWdo | ||
101 | dD8nCgpgSW4gbXkgeW91dGgsJyBGYXRoZXIgV2lsbGlhbSByZXBsaWVkIHRvIGhpcyBzb24sCmBJ | ||
102 | IGZlYXJlZCBpdCBtaWdodCBpbmp1cmUgdGhlIGJyYWluOwpCdXQsIG5vdyB0aGF0IEknbSBwZXJm | ||
103 | ZWN0bHkgc3VyZSBJIGhhdmUgbm9uZSwKV2h5LCBJIGRvIGl0IGFnYWluIGFuZCBhZ2Fpbi4nCgo= | ||
104 | |||
105 | ------- =_aaaaaaaaaa0-- | ||
106 | |||
107 | To: Foo Bar <foobar@nonexistent.net> | ||
108 | Subject: Nested MIME | ||
109 | Date: Sat, 13 Jul 2002 00:50:58 +0300 | ||
110 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
111 | |||
112 | ------- =_aaaaaaaaaa0 | ||
113 | Content-Type: text/plain; name="msg.21"; charset="us-ascii" | ||
114 | Content-ID: <5122.1026510654.2@Mirddin.farlep.net> | ||
115 | Content-Description: Father William Part I | ||
116 | |||
117 | `You are old, Father William,' the young man said, | ||
118 | `And your hair has become very white; | ||
119 | And yet you incessantly stand on your head-- | ||
120 | Do you think, at your age, it is right?' | ||
121 | |||
122 | `In my youth,' Father William replied to his son, | ||
123 | `I feared it might injure the brain; | ||
124 | But, now that I'm perfectly sure I have none, | ||
125 | Why, I do it again and again.' | ||
126 | |||
127 | |||
128 | ------- =_aaaaaaaaaa0 | ||
129 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa1" | ||
130 | Content-ID: <5122.1026510654.3@Mirddin.farlep.net> | ||
131 | |||
132 | ------- =_aaaaaaaaaa1 | ||
133 | Content-Type: application/octet-stream; name="msg.22" | ||
134 | Content-ID: <5122.1026510654.4@Mirddin.farlep.net> | ||
135 | Content-Description: Father William Part II | ||
136 | Content-Transfer-Encoding: base64 | ||
137 | |||
138 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhcyBJIG1lbnRpb25lZCBiZWZvcmUsCkFu | ||
139 | ZCBoYXZlIGdyb3duIG1vc3QgdW5jb21tb25seSBmYXQ7CllldCB5b3UgdHVybmVkIGEgYmFjay1z | ||
140 | b21lcnNhdWx0IGluIGF0IHRoZSBkb29yLS0KUHJheSwgd2hhdCBpcyB0aGUgcmVhc29uIG9mIHRo | ||
141 | YXQ/JwoKYEluIG15IHlvdXRoLCcgc2FpZCB0aGUgc2FnZSwgYXMgaGUgc2hvb2sgaGlzIGdyZXkg | ||
142 | bG9ja3MsCmBJIGtlcHQgYWxsIG15IGxpbWJzIHZlcnkgc3VwcGxlCkJ5IHRoZSB1c2Ugb2YgdGhp | ||
143 | cyBvaW50bWVudC0tb25lIHNoaWxsaW5nIHRoZSBib3gtLQpBbGxvdyBtZSB0byBzZWxsIHlvdSBh | ||
144 | IGNvdXBsZT8nCg== | ||
145 | |||
146 | ------- =_aaaaaaaaaa1 | ||
147 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa2" | ||
148 | Content-ID: <5122.1026510654.5@Mirddin.farlep.net> | ||
149 | |||
150 | ------- =_aaaaaaaaaa2 | ||
151 | Content-Type: application/octet-stream; name="msg.23" | ||
152 | Content-ID: <5122.1026510654.6@Mirddin.farlep.net> | ||
153 | Content-Description: Father William Part III | ||
154 | Content-Transfer-Encoding: base64 | ||
155 | |||
156 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh | ||
157 | awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv | ||
158 | b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn | ||
159 | ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g | ||
160 | dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1 | ||
161 | bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz | ||
162 | dCBvZiBteSBsaWZlLicK | ||
163 | |||
164 | ------- =_aaaaaaaaaa2 | ||
165 | Content-Type: application/octet-stream; name="msg.24" | ||
166 | Content-ID: <5122.1026510654.7@Mirddin.farlep.net> | ||
167 | Content-Description: Father William Part IV | ||
168 | Content-Transfer-Encoding: base64 | ||
169 | |||
170 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBvbmUgd291bGQgaGFyZGx5IHN1cHBvc2UK | ||
171 | VGhhdCB5b3VyIGV5ZSB3YXMgYXMgc3RlYWR5IGFzIGV2ZXI7CllldCB5b3UgYmFsYW5jZWQgYW4g | ||
172 | ZWVsIG9uIHRoZSBlbmQgb2YgeW91ciBub3NlLS0KV2hhdCBtYWRlIHlvdSBzbyBhd2Z1bGx5IGNs | ||
173 | ZXZlcj8nCgpgSSBoYXZlIGFuc3dlcmVkIHRocmVlIHF1ZXN0aW9ucywgYW5kIHRoYXQgaXMgZW5v | ||
174 | dWdoLCcKU2FpZCBoaXMgZmF0aGVyOyBgZG9uJ3QgZ2l2ZSB5b3Vyc2VsZiBhaXJzIQpEbyB5b3Ug | ||
175 | dGhpbmsgSSBjYW4gbGlzdGVuIGFsbCBkYXkgdG8gc3VjaCBzdHVmZj8KQmUgb2ZmLCBvciBJJ2xs | ||
176 | IGtpY2sgeW91IGRvd24gc3RhaXJzIScK | ||
177 | |||
178 | ------- =_aaaaaaaaaa2-- | ||
179 | |||
180 | ------- =_aaaaaaaaaa1-- | ||
181 | |||
182 | ------- =_aaaaaaaaaa0-- | ||
183 | |||
184 | To: Foo Bar <foobar@nonexistent.net> | ||
185 | Subject: Empty MIME Parts | ||
186 | Date: Sat, 13 Jul 2002 00:43:18 +0300 | ||
187 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
188 | |||
189 | ------- =_aaaaaaaaaa0 | ||
190 | Content-Type: text/plain; name="empty"; charset="us-ascii" | ||
191 | Content-ID: <5082.1026510189.1@Mirddin.farlep.net> | ||
192 | Content-Description: Empty part | ||
193 | |||
194 | |||
195 | ------- =_aaaaaaaaaa0 | ||
196 | Content-Type: text/plain; name="single.line"; charset="us-ascii" | ||
197 | Content-ID: <5082.1026510189.2@Mirddin.farlep.net> | ||
198 | Content-Description: Single line part | ||
199 | |||
200 | |||
201 | |||
202 | ------- =_aaaaaaaaaa0-- | ||
203 | |||
204 | |||
205 | ]) |
readmsg/tests/atlocal.in
0 → 100644
1 | # @configure_input@ -*- shell-script -*- | ||
2 | # Configurable variable values for Mailutils test suite. | ||
3 | # Copyright (C) 2004, 2010 Free Software Foundation, Inc. | ||
4 | |||
5 | PATH=@abs_builddir@:@abs_top_builddir@/readmsg:$top_srcdir:$srcdir:$PATH | ||
6 | top_srcdir=@abs_top_srcdir@ | ||
7 | top_builddir=@abs_top_builddir@ |
readmsg/tests/hdr.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | READMSGTEST([readmsg -h],[hdr], | ||
19 | [readmsg -h SOMETHING], | ||
20 | [0], | ||
21 | [From bar@dontmailme.org Fri Dec 28 23:28:09 2001 | ||
22 | Received: (from bar@dontmailme.org) | ||
23 | by dontmailme.org id fERKR9N16790 | ||
24 | for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200 | ||
25 | Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
26 | From: Bar <bar@dontmailme.org> | ||
27 | To: Foo Bar <foobar@nonexistent.net> | ||
28 | Message-Id: <200112232808.fERKR9N16790@dontmailme.org> | ||
29 | Subject: Re: Jabberwocky | ||
30 | |||
31 | It seems very pretty, but it's *rather* hard to understand!' | ||
32 | Somehow it seems to fill my head with ideas -- only I don't | ||
33 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
34 | that's clear, at any rate... | ||
35 | |||
36 | |||
37 | ]) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
readmsg/tests/nohdr.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | READMSGTEST([readmsg -n],[nohdr], | ||
19 | [readmsg -n SOMETHING], | ||
20 | [0], | ||
21 | [It seems very pretty, but it's *rather* hard to understand!' | ||
22 | Somehow it seems to fill my head with ideas -- only I don't | ||
23 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
24 | that's clear, at any rate... | ||
25 | |||
26 | |||
27 | ]) |
readmsg/tests/testsuite.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | # Require a reasonably recent autotest. | ||
19 | m4_version_prereq([2.52g]) | ||
20 | m4_include([testsuite.inc]) | ||
21 | |||
22 | dnl ------------------------------------------------------------ | ||
23 | dnl READMSG_MAILBOX -- mailbox used for testing | ||
24 | m4_define([READMSG_MAILBOX],[mbox1]) | ||
25 | |||
26 | dnl ------------------------------------------------------------ | ||
27 | dnl READMSG_OPTIONS -- default options for readmsg | ||
28 | m4_define([READMSG_OPTIONS],[--no-site --no-user]) | ||
29 | |||
30 | dnl ------------------------------------------------------------ | ||
31 | dnl READMSGTEST(DESCR, KW, CMDLINE, [STATUS = `0'], [STDOUT = `'], | ||
32 | dnl [STDERR = `'], [RUN-IF-FAIL], [RUN-IF-PASS]) | ||
33 | dnl | ||
34 | m4_define([READMSGTEST],[ | ||
35 | AT_SETUP([$1]) | ||
36 | AT_KEYWORDS([$2]) | ||
37 | AT_CHECK([ | ||
38 | MAIL=$top_srcdir/testsuite/spool/READMSG_MAILBOX | ||
39 | FOLDER=$MAIL | ||
40 | export MAIL FOLDER | ||
41 | readmsg READMSG_OPTIONS $3], | ||
42 | m4_shift(m4_shift(m4_shift($@)))) | ||
43 | AT_CLEANUP]) | ||
44 | |||
45 | AT_INIT | ||
46 | |||
47 | AT_TESTED([readmsg]) | ||
48 | |||
49 | MUT_VERSION(readmsg) | ||
50 | m4_include([all.at]) | ||
51 | m4_include([twomsg.at]) | ||
52 | m4_include([hdr.at]) | ||
53 | m4_include([nohdr.at]) | ||
54 | m4_include([weed.at]) |
readmsg/tests/twomsg.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | READMSGTEST([readmsg 1 2],[twomsg], | ||
19 | [1 2], | ||
20 | [0], | ||
21 | [Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
22 | From: Foo Bar <foobar@nonexistent.net> | ||
23 | To: Bar <bar@dontmailme.org> | ||
24 | Subject: Jabberwocky | ||
25 | |||
26 | `Twas brillig, and the slithy toves | ||
27 | Did gyre and gimble in the wabe; | ||
28 | All mimsy were the borogoves, | ||
29 | And the mome raths outgrabe. | ||
30 | |||
31 | `Beware the Jabberwock, my son! | ||
32 | The jaws that bite, the claws that catch! | ||
33 | Beware the Jujub bird, and shun | ||
34 | The frumious Bandersnatch!' | ||
35 | |||
36 | He took his vorpal sword in hand: | ||
37 | Long time the manxome foe he sought -- | ||
38 | So rested he by the Tumtum gree, | ||
39 | And stood awhile in thought. | ||
40 | |||
41 | And as in uffish thought he stood, | ||
42 | The Jabberwock, with eyes of flame, | ||
43 | Came whiffling through the tulgey wook, | ||
44 | And burbled as it came! | ||
45 | |||
46 | One, two! One, two! And through and through | ||
47 | The vorpal blade went snicker-snack! | ||
48 | He left it dead, and with its head | ||
49 | He went galumphing back. | ||
50 | |||
51 | `And has thou slain the Jabberwock? | ||
52 | Come to my arms, my beamish boy! | ||
53 | O frabjous day! Calloh! Callay! | ||
54 | He chortled in his joy. | ||
55 | |||
56 | `Twas brillig, and the slithy toves | ||
57 | Did gyre and gimble in the wabe; | ||
58 | All mimsy were the borogoves, | ||
59 | And the mome raths outgrabe. | ||
60 | |||
61 | |||
62 | Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
63 | From: Bar <bar@dontmailme.org> | ||
64 | To: Foo Bar <foobar@nonexistent.net> | ||
65 | Subject: Re: Jabberwocky | ||
66 | |||
67 | It seems very pretty, but it's *rather* hard to understand!' | ||
68 | Somehow it seems to fill my head with ideas -- only I don't | ||
69 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
70 | that's clear, at any rate... | ||
71 | |||
72 | |||
73 | ]) | ||
74 |
readmsg/tests/weed.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | # This file is part of Mailfromd testsuite. | ||
17 | |||
18 | READMSGTEST([readmsg -w],[weed], | ||
19 | [-w date,subject SOMETHING], | ||
20 | [0], | ||
21 | [Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
22 | Subject: Re: Jabberwocky | ||
23 | |||
24 | It seems very pretty, but it's *rather* hard to understand!' | ||
25 | Somehow it seems to fill my head with ideas -- only I don't | ||
26 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
27 | that's clear, at any rate... | ||
28 | |||
29 | |||
30 | ]) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
readmsg/testsuite/.gitignore
deleted
100644 → 0
readmsg/testsuite/Makefile.am
deleted
100644 → 0
1 | ## Process this file with GNU Automake to create Makefile.in | ||
2 | |||
3 | ## Copyright (C) 2002, 2007, 2010 Free Software Foundation, Inc. | ||
4 | ## | ||
5 | ## GNU Mailutils is free software; you can redistribute it and/or | ||
6 | ## modify it under the terms of the GNU General Public License as | ||
7 | ## published by the Free Software Foundation; either version 3, or (at | ||
8 | ## your option) any later version. | ||
9 | ## | ||
10 | ## This program is distributed in the hope that it will be useful, but | ||
11 | ## WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | ## General Public License for more details. | ||
14 | ## | ||
15 | ## You should have received a copy of the GNU General Public License | ||
16 | ## along with this program; if not, write to the Free Software | ||
17 | ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA | ||
18 | ## 02110-1301 USA | ||
19 | |||
20 | AUTOMAKE_OPTIONS = dejagnu | ||
21 | DEJATOOL = readmsg | ||
22 | RUNTESTFLAGS = | ||
23 | CLEANFILES = *.log | ||
24 | test_dirs = readmsg | ||
25 | |||
26 | dist-hook: | ||
27 | here=`cd $(top_builddir)/$(subdir) && pwd`; \ | ||
28 | srcdir=`cd $(srcdir) && pwd`; \ | ||
29 | distdir=`cd $(distdir) && pwd`; \ | ||
30 | for dir in $(test_dirs); \ | ||
31 | do \ | ||
32 | cd $$srcdir;\ | ||
33 | mkdir $$distdir/$$dir;\ | ||
34 | cd $$dir;\ | ||
35 | for file in DISTFILES `cat DISTFILES`; do \ | ||
36 | d=$$srcdir/$$dir; \ | ||
37 | if test -d $$d/$$file; then \ | ||
38 | cp -pr $$d/$$file $$distdir/$$dir/$$file; \ | ||
39 | else \ | ||
40 | test -f $$distdir/$$dir/$$file \ | ||
41 | || cp -p $$d/$$file $$distdir/$$dir/$$file || exit; \ | ||
42 | fi; \ | ||
43 | done;\ | ||
44 | done;\ | ||
45 | cd $$here | ||
46 | |||
47 | site.exp: Makefile remote.exp | ||
48 | @echo 'Making a new site.exp file...' | ||
49 | @test ! -f site.bak || rm -f site.bak | ||
50 | @echo '## these variables are automatically generated by make ##' > $@-t | ||
51 | @echo '# Do not edit here. If you wish to override these values' >> $@-t | ||
52 | @echo '# edit the last section' >> $@-t | ||
53 | @echo 'set tool $(DEJATOOL)' >> $@-t | ||
54 | @echo "set top_srcdir `cd $(top_srcdir); pwd`" >> $@-t | ||
55 | @echo "set srcdir `cd $(srcdir); pwd`" >> $@-t | ||
56 | @echo 'set objdir' `pwd` >> $@-t | ||
57 | @echo 'set host_alias "$(host_alias)"' >> $@-t | ||
58 | @echo 'set host_triplet $(host_triplet)' >> $@-t | ||
59 | @echo 'set target_alias "$(target_alias)"' >> $@-t | ||
60 | @echo 'set target_triplet $(target_triplet)' >> $@-t | ||
61 | @echo 'set build_alias "$(build_alias)"' >> $@-t | ||
62 | @echo 'set build_triplet $(build_triplet)' >> $@-t | ||
63 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t | ||
64 | @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t | ||
65 | @test ! -f site.exp || mv site.exp site.bak | ||
66 | @mv $@-t site.exp | ||
67 | |||
68 | remote.exp:; | ||
69 | @echo 'Making a new remote.exp file...' | ||
70 | @test ! -f remote.bak || rm -f remote.bak | ||
71 | @echo '## These variables are used to set up for the remote testing.' >> $@-t | ||
72 | @echo '## Please, read file README in this directory for instructions' >> $@-t | ||
73 | @echo '## on how to use this file' >> $@-t | ||
74 | @echo "set host_board `hostname`" >> $@-t | ||
75 | @echo 'set board_info($$host_board,connect) rlogin' >> $@-t | ||
76 | @echo 'set board_info($$host_board,shell_prompt) "\\$$ "' >> $@-t | ||
77 | @echo "set board_info(\$$host_board,top_srcdir) `cd $(top_srcdir); pwd`" >> $@-t | ||
78 | @echo "set board_info(\$$host_board,srcdir) `cd $(srcdir); pwd`" >> $@-t | ||
79 | @echo "set board_info(\$$host_board,objdir) `pwd`" >> $@-t | ||
80 | @echo "set board_info(\$$host_board,top_srcdir) `cd $(top_srcdir); pwd`" >> $@-t | ||
81 | @echo "set board_info(\$$host_board,top_builddir) `cd $(top_builddir); pwd`" >> $@-t | ||
82 | @test ! -f remote.exp || mv remote.exp remote.bak | ||
83 | @mv $@-t remote.exp | ||
84 | |||
85 | |||
86 | DISTCLEANFILES=*.exp *.log *.sum | ||
87 | |||
88 | distclean-local: | ||
89 | -rm -rf data |
readmsg/testsuite/readmsg/DISTFILES
deleted
100644 → 0
1 | test.exp |
readmsg/testsuite/readmsg/test.exp
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
... | @@ -18,8 +18,6 @@ | ... | @@ -18,8 +18,6 @@ |
18 | # Require a reasonably recent autotest. | 18 | # Require a reasonably recent autotest. |
19 | m4_version_prereq([2.52g]) | 19 | m4_version_prereq([2.52g]) |
20 | 20 | ||
21 | m4_define([AT_SKIP_TEST],[exit 77]) | ||
22 | |||
23 | dnl ------------------------------------------------------------ | 21 | dnl ------------------------------------------------------------ |
24 | dnl testcompile(SCRIPT) -- test compilation of the Sieve SCRIPT | 22 | dnl testcompile(SCRIPT) -- test compilation of the Sieve SCRIPT |
25 | dnl | 23 | dnl | ... | ... |
... | @@ -26,7 +26,7 @@ AT_CHECK([$1 --version | sed '1{s/ *[\[.*\]]//;q}' ], | ... | @@ -26,7 +26,7 @@ AT_CHECK([$1 --version | sed '1{s/ *[\[.*\]]//;q}' ], |
26 | [$1 (AT_PACKAGE_NAME) AT_PACKAGE_VERSION | 26 | [$1 (AT_PACKAGE_NAME) AT_PACKAGE_VERSION |
27 | ], | 27 | ], |
28 | [], | 28 | [], |
29 | [cat >$[]XFAILFILE <<'_EOT' | 29 | [cat >.xfailfile <<'_EOT' |
30 | 30 | ||
31 | ============================================================== | 31 | ============================================================== |
32 | WARNING: Not using the proper version, *all* checks dubious... | 32 | WARNING: Not using the proper version, *all* checks dubious... |
... | @@ -37,3 +37,6 @@ _EOT | ... | @@ -37,3 +37,6 @@ _EOT |
37 | 37 | ||
38 | AT_CLEANUP | 38 | AT_CLEANUP |
39 | ]) | 39 | ]) |
40 | |||
41 | m4_define([AT_SKIP_TEST],[exit 77]) | ||
42 | ... | ... |
-
Please register or sign in to post a comment