diff options
Diffstat (limited to 'mh/tests/comp.at')
-rw-r--r-- | mh/tests/comp.at | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/mh/tests/comp.at b/mh/tests/comp.at index a8d4a4129..563310cca 100644 --- a/mh/tests/comp.at +++ b/mh/tests/comp.at | |||
@@ -19,7 +19,7 @@ m4_pushdef([MH_KEYWORDS],[comp]) | |||
19 | m4_pushdef([compcmd],[comp -editor $abs_top_srcdir/mh/tests/mhed]) | 19 | m4_pushdef([compcmd],[comp -editor $abs_top_srcdir/mh/tests/mhed]) |
20 | 20 | ||
21 | MH_CHECK([comp -file],[comp00 comp-file],[ | 21 | MH_CHECK([comp -file],[comp00 comp-file],[ |
22 | echo quit | compcmd -file ./infile | remove_curdir | sed 's/ *$//' | 22 | echo quit | compcmd -file $HOME/infile | cwdrepl | sed 's/ *$//' |
23 | sed 's/ *$//' infile | 23 | sed 's/ *$//' infile |
24 | ], | 24 | ], |
25 | [0], | 25 | [0], |
@@ -39,7 +39,7 @@ Seen by mhed | |||
39 | ]) | 39 | ]) |
40 | 40 | ||
41 | MH_CHECK([comp -file (del)],[comp01 comp-file_del],[ | 41 | MH_CHECK([comp -file (del)],[comp01 comp-file_del],[ |
42 | echo 'quit -delete' | compcmd -file ./infile | remove_curdir | 42 | echo 'quit -delete' | compcmd -file $HOME/infile | cwdrepl | sed 's/ *$//' |
43 | ], | 43 | ], |
44 | [0], | 44 | [0], |
45 | [-- Editor invocation: ./infile | 45 | [-- Editor invocation: ./infile |
@@ -53,18 +53,18 @@ What now? | |||
53 | ]) | 53 | ]) |
54 | 54 | ||
55 | MH_CHECK([comp file],[comp02 comp_file],[ | 55 | MH_CHECK([comp file],[comp02 comp_file],[ |
56 | echo 'quit' | compcmd file | remove_curdir | sed 's/ *$//' | 56 | echo 'quit' | compcmd file | cwdrepl | sed 's/ *$//' |
57 | sed 's/ *$//' Mail/file | 57 | sed 's/ *$//' Mail/file |
58 | ], | 58 | ], |
59 | [0], | 59 | [0], |
60 | [-- Editor invocation: Mail/file | 60 | [-- Editor invocation: ./Mail/file |
61 | -- Input file: | 61 | -- Input file: |
62 | To: | 62 | To: |
63 | cc: | 63 | cc: |
64 | Subject: | 64 | Subject: |
65 | -------- | 65 | -------- |
66 | -- Input file end | 66 | -- Input file end |
67 | What now? draft left on "Mail/file". | 67 | What now? draft left on "./Mail/file". |
68 | To: | 68 | To: |
69 | cc: | 69 | cc: |
70 | Subject: | 70 | Subject: |
@@ -80,11 +80,11 @@ Subject: test input | |||
80 | message body | 80 | message body |
81 | ]) | 81 | ]) |
82 | 82 | ||
83 | echo 'quit' | compcmd -use file | remove_curdir | sed 's/ *$//' | 83 | echo 'quit' | compcmd -use file | cwdrepl | sed 's/ *$//' |
84 | sed 's/ *$//' Mail/file | 84 | sed 's/ *$//' Mail/file |
85 | ], | 85 | ], |
86 | [0], | 86 | [0], |
87 | [-- Editor invocation: Mail/file | 87 | [-- Editor invocation: ./Mail/file |
88 | -- Input file: | 88 | -- Input file: |
89 | From: gray | 89 | From: gray |
90 | To: root | 90 | To: root |
@@ -92,7 +92,7 @@ Subject: test input | |||
92 | 92 | ||
93 | message body | 93 | message body |
94 | -- Input file end | 94 | -- Input file end |
95 | What now? draft left on "Mail/file". | 95 | What now? draft left on "./Mail/file". |
96 | From: gray | 96 | From: gray |
97 | To: root | 97 | To: root |
98 | Subject: test input | 98 | Subject: test input |
@@ -110,14 +110,14 @@ Subject: test input | |||
110 | message body | 110 | message body |
111 | ]) | 111 | ]) |
112 | 112 | ||
113 | echo 'quit' | compcmd +inbox 1 | remove_curdir | sed 's/ *$//' | 113 | echo 'quit' | compcmd +inbox 1 | cwdrepl | sed 's/ *$//' |
114 | echo Mail/draft | 114 | echo Mail/draft |
115 | sed 's/ *$//' Mail/draft | 115 | sed 's/ *$//' Mail/draft |
116 | echo Message | 116 | echo Message |
117 | sed 's/ *$//' Mail/inbox/1 | 117 | sed 's/ *$//' Mail/inbox/1 |
118 | ], | 118 | ], |
119 | [0], | 119 | [0], |
120 | [-- Editor invocation: Mail/draft | 120 | [-- Editor invocation: ./Mail/draft |
121 | -- Input file: | 121 | -- Input file: |
122 | From: gray | 122 | From: gray |
123 | To: root | 123 | To: root |
@@ -125,7 +125,7 @@ Subject: test input | |||
125 | 125 | ||
126 | message body | 126 | message body |
127 | -- Input file end | 127 | -- Input file end |
128 | What now? draft left on "Mail/draft". | 128 | What now? draft left on "./Mail/draft". |
129 | Mail/draft | 129 | Mail/draft |
130 | From: gray | 130 | From: gray |
131 | To: root | 131 | To: root |
@@ -143,18 +143,18 @@ message body | |||
143 | 143 | ||
144 | MH_CHECK([comp -draftfolder],[comp05 comp-draftfolder draftfolder],[ | 144 | MH_CHECK([comp -draftfolder],[comp05 comp-draftfolder draftfolder],[ |
145 | mkdir Mail/drafts | 145 | mkdir Mail/drafts |
146 | echo 'quit' | compcmd -draftfolder drafts | remove_curdir | sed 's/ *$//' | 146 | echo 'quit' | compcmd -draftfolder drafts | cwdrepl | sed 's/ *$//' |
147 | sed 's/ *$//' Mail/drafts/1 | 147 | sed 's/ *$//' Mail/drafts/1 |
148 | ], | 148 | ], |
149 | [0], | 149 | [0], |
150 | [-- Editor invocation: Mail/drafts/1 | 150 | [-- Editor invocation: ./Mail/drafts/1 |
151 | -- Input file: | 151 | -- Input file: |
152 | To: | 152 | To: |
153 | cc: | 153 | cc: |
154 | Subject: | 154 | Subject: |
155 | -------- | 155 | -------- |
156 | -- Input file end | 156 | -- Input file end |
157 | What now? draft left on "Mail/drafts/1". | 157 | What now? draft left on "./Mail/drafts/1". |
158 | To: | 158 | To: |
159 | cc: | 159 | cc: |
160 | Subject: | 160 | Subject: |
@@ -172,11 +172,11 @@ message body | |||
172 | ]) | 172 | ]) |
173 | echo "cur: 1" > Mail/drafts/.mh_sequences | 173 | echo "cur: 1" > Mail/drafts/.mh_sequences |
174 | 174 | ||
175 | echo 'quit' | compcmd -draftfolder drafts -use| remove_curdir | sed 's/ *$//' | 175 | echo 'quit' | compcmd -draftfolder drafts -use| cwdrepl | sed 's/ *$//' |
176 | sed 's/ *$//' Mail/drafts/1 | 176 | sed 's/ *$//' Mail/drafts/1 |
177 | ], | 177 | ], |
178 | [0], | 178 | [0], |
179 | [-- Editor invocation: Mail/drafts/1 | 179 | [-- Editor invocation: ./Mail/drafts/1 |
180 | -- Input file: | 180 | -- Input file: |
181 | From: gray | 181 | From: gray |
182 | To: root | 182 | To: root |
@@ -184,7 +184,7 @@ Subject: test input | |||
184 | 184 | ||
185 | message body | 185 | message body |
186 | -- Input file end | 186 | -- Input file end |
187 | What now? draft left on "Mail/drafts/1". | 187 | What now? draft left on "./Mail/drafts/1". |
188 | From: gray | 188 | From: gray |
189 | To: root | 189 | To: root |
190 | Subject: test input | 190 | Subject: test input |