1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id EAEAA431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 9 Jan 2014 07:19:18 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.312 tagged_above=-999 required=5
\r
12 tests=[GAPPY_SUBJECT=1.312] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 5yZPwDm6b3S8 for <notmuch@notmuchmail.org>;
\r
16 Thu, 9 Jan 2014 07:19:13 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 71089431FC2
\r
19 for <notmuch@notmuchmail.org>; Thu, 9 Jan 2014 07:19:08 -0800 (PST)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id ED44A10008F; Thu, 9 Jan 2014 17:19:01 +0200 (EET)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 2/2] test: renamed test scripts to format T\d\d\d-name.sh
\r
25 Date: Thu, 9 Jan 2014 17:18:59 +0200
\r
26 Message-Id: <1389280739-31930-2-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.8.0
\r
28 In-Reply-To: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi>
\r
29 References: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi>
\r
30 Cc: tomi.ollila@iki.fi
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.13
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Thu, 09 Jan 2014 15:19:19 -0000
\r
45 All test scripts to be executed are now named as T\d\d\d-name.sh,
\r
46 numers in increments of 10.
\r
48 This eases adding new tests and developers to see which are test scripts
\r
49 that are executed by test suite and in which order.
\r
52 Renaming was done using (beware! bash syntax ;):
\r
57 printf -v name "T%03d-%s.sh" $c $f;
\r
62 and git format-patch -M HEAD^^ was used to create this patch set.
\r
64 No reordering was done to the test set. I can do that in case Someone(TM)
\r
65 provides me ${TESTS} in desired order
\r
67 I plan to write 'rename-tests' script which can be used to rename tests
\r
68 in current order to have 10 -increments again (first testing that all
\r
69 T*.sh files to be rennamed are in git and then that there is no duplicate
\r
70 names (or something), but that is done after these changes are approved...
\r
73 test/{basic => T000-basic.sh} | 0
\r
74 test/{help-test => T010-help-test.sh} | 0
\r
75 test/{compact => T020-compact.sh} | 0
\r
76 test/{config => T030-config.sh} | 0
\r
77 test/{setup => T040-setup.sh} | 0
\r
78 test/{new => T050-new.sh} | 0
\r
79 test/{count => T060-count.sh} | 0
\r
80 test/{insert => T070-insert.sh} | 0
\r
81 test/{search => T080-search.sh} | 0
\r
82 test/{search-output => T090-search-output.sh} | 0
\r
83 .../{search-by-folder => T100-search-by-folder.sh} | 0
\r
84 ...lap-bug => T110-search-position-overlap-bug.sh} | 0
\r
85 ...ng => T120-search-insufficient-from-quoting.sh} | 0
\r
86 test/{search-limiting => T130-search-limiting.sh} | 0
\r
87 test/{excludes => T140-excludes.sh} | 0
\r
88 test/{tagging => T150-tagging.sh} | 0
\r
89 test/{json => T160-json.sh} | 0
\r
90 test/{sexp => T170-sexp.sh} | 0
\r
91 test/{text => T180-text.sh} | 0
\r
92 test/{multipart => T190-multipart.sh} | 0
\r
93 test/{thread-naming => T200-thread-naming.sh} | 0
\r
94 test/{raw => T210-raw.sh} | 0
\r
95 test/{reply => T220-reply.sh} | 0
\r
96 test/{reply-to-sender => T230-reply-to-sender.sh} | 0
\r
97 test/{dump-restore => T240-dump-restore.sh} | 0
\r
98 test/{uuencode => T250-uuencode.sh} | 0
\r
99 test/{thread-order => T260-thread-order.sh} | 0
\r
100 test/{author-order => T270-author-order.sh} | 0
\r
101 test/{from-guessing => T280-from-guessing.sh} | 0
\r
102 test/{long-id => T290-long-id.sh} | 0
\r
103 test/{encoding => T300-encoding.sh} | 0
\r
104 test/{emacs => T310-emacs.sh} | 0
\r
105 ...ch-buffer => T320-emacs-large-search-buffer.sh} | 0
\r
106 ...-filename => T330-emacs-subject-to-filename.sh} | 0
\r
107 test/{maildir-sync => T340-maildir-sync.sh} | 0
\r
108 test/{crypto => T350-crypto.sh} | 0
\r
109 test/{symbol-hiding => T360-symbol-hiding.sh} | 0
\r
110 ...r-coherence => T370-search-folder-coherence.sh} | 0
\r
111 test/{atomicity => T380-atomicity.sh} | 0
\r
112 test/{python => T390-python.sh} | 0
\r
113 test/{hooks => T400-hooks.sh} | 0
\r
114 .../{argument-parsing => T410-argument-parsing.sh} | 0
\r
115 ...test-functions => T420-emacs-test-functions.sh} | 0
\r
116 ...ess-cleaning => T430-emacs-address-cleaning.sh} | 0
\r
117 test/{emacs-hello => T440-emacs-hello.sh} | 0
\r
118 test/{emacs-show => T450-emacs-show.sh} | 0
\r
119 test/{emacs-tree => T460-emacs-tree.sh} | 0
\r
120 test/{missing-headers => T470-missing-headers.sh} | 0
\r
121 test/{hex-escaping => T480-hex-escaping.sh} | 0
\r
122 ...parse-time-string => T490-parse-time-string.sh} | 0
\r
123 test/{search-date => T500-search-date.sh} | 0
\r
124 test/{thread-replies => T510-thread-replies.sh} | 0
\r
125 test/notmuch-test | 56 +---------------------
\r
126 test/test-lib.sh | 1 +
\r
127 54 files changed, 2 insertions(+), 55 deletions(-)
\r
128 rename test/{basic => T000-basic.sh} (100%)
\r
129 rename test/{help-test => T010-help-test.sh} (100%)
\r
130 rename test/{compact => T020-compact.sh} (100%)
\r
131 rename test/{config => T030-config.sh} (100%)
\r
132 rename test/{setup => T040-setup.sh} (100%)
\r
133 rename test/{new => T050-new.sh} (100%)
\r
134 rename test/{count => T060-count.sh} (100%)
\r
135 rename test/{insert => T070-insert.sh} (100%)
\r
136 rename test/{search => T080-search.sh} (100%)
\r
137 rename test/{search-output => T090-search-output.sh} (100%)
\r
138 rename test/{search-by-folder => T100-search-by-folder.sh} (100%)
\r
139 rename test/{search-position-overlap-bug => T110-search-position-overlap-bug.sh} (100%)
\r
140 rename test/{search-insufficient-from-quoting => T120-search-insufficient-from-quoting.sh} (100%)
\r
141 rename test/{search-limiting => T130-search-limiting.sh} (100%)
\r
142 rename test/{excludes => T140-excludes.sh} (100%)
\r
143 rename test/{tagging => T150-tagging.sh} (100%)
\r
144 rename test/{json => T160-json.sh} (100%)
\r
145 rename test/{sexp => T170-sexp.sh} (100%)
\r
146 rename test/{text => T180-text.sh} (100%)
\r
147 rename test/{multipart => T190-multipart.sh} (100%)
\r
148 rename test/{thread-naming => T200-thread-naming.sh} (100%)
\r
149 rename test/{raw => T210-raw.sh} (100%)
\r
150 rename test/{reply => T220-reply.sh} (100%)
\r
151 rename test/{reply-to-sender => T230-reply-to-sender.sh} (100%)
\r
152 rename test/{dump-restore => T240-dump-restore.sh} (100%)
\r
153 rename test/{uuencode => T250-uuencode.sh} (100%)
\r
154 rename test/{thread-order => T260-thread-order.sh} (100%)
\r
155 rename test/{author-order => T270-author-order.sh} (100%)
\r
156 rename test/{from-guessing => T280-from-guessing.sh} (100%)
\r
157 rename test/{long-id => T290-long-id.sh} (100%)
\r
158 rename test/{encoding => T300-encoding.sh} (100%)
\r
159 rename test/{emacs => T310-emacs.sh} (100%)
\r
160 rename test/{emacs-large-search-buffer => T320-emacs-large-search-buffer.sh} (100%)
\r
161 rename test/{emacs-subject-to-filename => T330-emacs-subject-to-filename.sh} (100%)
\r
162 rename test/{maildir-sync => T340-maildir-sync.sh} (100%)
\r
163 rename test/{crypto => T350-crypto.sh} (100%)
\r
164 rename test/{symbol-hiding => T360-symbol-hiding.sh} (100%)
\r
165 rename test/{search-folder-coherence => T370-search-folder-coherence.sh} (100%)
\r
166 rename test/{atomicity => T380-atomicity.sh} (100%)
\r
167 rename test/{python => T390-python.sh} (100%)
\r
168 rename test/{hooks => T400-hooks.sh} (100%)
\r
169 rename test/{argument-parsing => T410-argument-parsing.sh} (100%)
\r
170 rename test/{emacs-test-functions => T420-emacs-test-functions.sh} (100%)
\r
171 rename test/{emacs-address-cleaning => T430-emacs-address-cleaning.sh} (100%)
\r
172 rename test/{emacs-hello => T440-emacs-hello.sh} (100%)
\r
173 rename test/{emacs-show => T450-emacs-show.sh} (100%)
\r
174 rename test/{emacs-tree => T460-emacs-tree.sh} (100%)
\r
175 rename test/{missing-headers => T470-missing-headers.sh} (100%)
\r
176 rename test/{hex-escaping => T480-hex-escaping.sh} (100%)
\r
177 rename test/{parse-time-string => T490-parse-time-string.sh} (100%)
\r
178 rename test/{search-date => T500-search-date.sh} (100%)
\r
179 rename test/{thread-replies => T510-thread-replies.sh} (100%)
\r
181 diff --git a/test/basic b/test/T000-basic.sh
\r
182 similarity index 100%
\r
183 rename from test/basic
\r
184 rename to test/T000-basic.sh
\r
185 diff --git a/test/help-test b/test/T010-help-test.sh
\r
186 similarity index 100%
\r
187 rename from test/help-test
\r
188 rename to test/T010-help-test.sh
\r
189 diff --git a/test/compact b/test/T020-compact.sh
\r
190 similarity index 100%
\r
191 rename from test/compact
\r
192 rename to test/T020-compact.sh
\r
193 diff --git a/test/config b/test/T030-config.sh
\r
194 similarity index 100%
\r
195 rename from test/config
\r
196 rename to test/T030-config.sh
\r
197 diff --git a/test/setup b/test/T040-setup.sh
\r
198 similarity index 100%
\r
199 rename from test/setup
\r
200 rename to test/T040-setup.sh
\r
201 diff --git a/test/new b/test/T050-new.sh
\r
202 similarity index 100%
\r
203 rename from test/new
\r
204 rename to test/T050-new.sh
\r
205 diff --git a/test/count b/test/T060-count.sh
\r
206 similarity index 100%
\r
207 rename from test/count
\r
208 rename to test/T060-count.sh
\r
209 diff --git a/test/insert b/test/T070-insert.sh
\r
210 similarity index 100%
\r
211 rename from test/insert
\r
212 rename to test/T070-insert.sh
\r
213 diff --git a/test/search b/test/T080-search.sh
\r
214 similarity index 100%
\r
215 rename from test/search
\r
216 rename to test/T080-search.sh
\r
217 diff --git a/test/search-output b/test/T090-search-output.sh
\r
218 similarity index 100%
\r
219 rename from test/search-output
\r
220 rename to test/T090-search-output.sh
\r
221 diff --git a/test/search-by-folder b/test/T100-search-by-folder.sh
\r
222 similarity index 100%
\r
223 rename from test/search-by-folder
\r
224 rename to test/T100-search-by-folder.sh
\r
225 diff --git a/test/search-position-overlap-bug b/test/T110-search-position-overlap-bug.sh
\r
226 similarity index 100%
\r
227 rename from test/search-position-overlap-bug
\r
228 rename to test/T110-search-position-overlap-bug.sh
\r
229 diff --git a/test/search-insufficient-from-quoting b/test/T120-search-insufficient-from-quoting.sh
\r
230 similarity index 100%
\r
231 rename from test/search-insufficient-from-quoting
\r
232 rename to test/T120-search-insufficient-from-quoting.sh
\r
233 diff --git a/test/search-limiting b/test/T130-search-limiting.sh
\r
234 similarity index 100%
\r
235 rename from test/search-limiting
\r
236 rename to test/T130-search-limiting.sh
\r
237 diff --git a/test/excludes b/test/T140-excludes.sh
\r
238 similarity index 100%
\r
239 rename from test/excludes
\r
240 rename to test/T140-excludes.sh
\r
241 diff --git a/test/tagging b/test/T150-tagging.sh
\r
242 similarity index 100%
\r
243 rename from test/tagging
\r
244 rename to test/T150-tagging.sh
\r
245 diff --git a/test/json b/test/T160-json.sh
\r
246 similarity index 100%
\r
247 rename from test/json
\r
248 rename to test/T160-json.sh
\r
249 diff --git a/test/sexp b/test/T170-sexp.sh
\r
250 similarity index 100%
\r
251 rename from test/sexp
\r
252 rename to test/T170-sexp.sh
\r
253 diff --git a/test/text b/test/T180-text.sh
\r
254 similarity index 100%
\r
255 rename from test/text
\r
256 rename to test/T180-text.sh
\r
257 diff --git a/test/multipart b/test/T190-multipart.sh
\r
258 similarity index 100%
\r
259 rename from test/multipart
\r
260 rename to test/T190-multipart.sh
\r
261 diff --git a/test/thread-naming b/test/T200-thread-naming.sh
\r
262 similarity index 100%
\r
263 rename from test/thread-naming
\r
264 rename to test/T200-thread-naming.sh
\r
265 diff --git a/test/raw b/test/T210-raw.sh
\r
266 similarity index 100%
\r
267 rename from test/raw
\r
268 rename to test/T210-raw.sh
\r
269 diff --git a/test/reply b/test/T220-reply.sh
\r
270 similarity index 100%
\r
271 rename from test/reply
\r
272 rename to test/T220-reply.sh
\r
273 diff --git a/test/reply-to-sender b/test/T230-reply-to-sender.sh
\r
274 similarity index 100%
\r
275 rename from test/reply-to-sender
\r
276 rename to test/T230-reply-to-sender.sh
\r
277 diff --git a/test/dump-restore b/test/T240-dump-restore.sh
\r
278 similarity index 100%
\r
279 rename from test/dump-restore
\r
280 rename to test/T240-dump-restore.sh
\r
281 diff --git a/test/uuencode b/test/T250-uuencode.sh
\r
282 similarity index 100%
\r
283 rename from test/uuencode
\r
284 rename to test/T250-uuencode.sh
\r
285 diff --git a/test/thread-order b/test/T260-thread-order.sh
\r
286 similarity index 100%
\r
287 rename from test/thread-order
\r
288 rename to test/T260-thread-order.sh
\r
289 diff --git a/test/author-order b/test/T270-author-order.sh
\r
290 similarity index 100%
\r
291 rename from test/author-order
\r
292 rename to test/T270-author-order.sh
\r
293 diff --git a/test/from-guessing b/test/T280-from-guessing.sh
\r
294 similarity index 100%
\r
295 rename from test/from-guessing
\r
296 rename to test/T280-from-guessing.sh
\r
297 diff --git a/test/long-id b/test/T290-long-id.sh
\r
298 similarity index 100%
\r
299 rename from test/long-id
\r
300 rename to test/T290-long-id.sh
\r
301 diff --git a/test/encoding b/test/T300-encoding.sh
\r
302 similarity index 100%
\r
303 rename from test/encoding
\r
304 rename to test/T300-encoding.sh
\r
305 diff --git a/test/emacs b/test/T310-emacs.sh
\r
306 similarity index 100%
\r
307 rename from test/emacs
\r
308 rename to test/T310-emacs.sh
\r
309 diff --git a/test/emacs-large-search-buffer b/test/T320-emacs-large-search-buffer.sh
\r
310 similarity index 100%
\r
311 rename from test/emacs-large-search-buffer
\r
312 rename to test/T320-emacs-large-search-buffer.sh
\r
313 diff --git a/test/emacs-subject-to-filename b/test/T330-emacs-subject-to-filename.sh
\r
314 similarity index 100%
\r
315 rename from test/emacs-subject-to-filename
\r
316 rename to test/T330-emacs-subject-to-filename.sh
\r
317 diff --git a/test/maildir-sync b/test/T340-maildir-sync.sh
\r
318 similarity index 100%
\r
319 rename from test/maildir-sync
\r
320 rename to test/T340-maildir-sync.sh
\r
321 diff --git a/test/crypto b/test/T350-crypto.sh
\r
322 similarity index 100%
\r
323 rename from test/crypto
\r
324 rename to test/T350-crypto.sh
\r
325 diff --git a/test/symbol-hiding b/test/T360-symbol-hiding.sh
\r
326 similarity index 100%
\r
327 rename from test/symbol-hiding
\r
328 rename to test/T360-symbol-hiding.sh
\r
329 diff --git a/test/search-folder-coherence b/test/T370-search-folder-coherence.sh
\r
330 similarity index 100%
\r
331 rename from test/search-folder-coherence
\r
332 rename to test/T370-search-folder-coherence.sh
\r
333 diff --git a/test/atomicity b/test/T380-atomicity.sh
\r
334 similarity index 100%
\r
335 rename from test/atomicity
\r
336 rename to test/T380-atomicity.sh
\r
337 diff --git a/test/python b/test/T390-python.sh
\r
338 similarity index 100%
\r
339 rename from test/python
\r
340 rename to test/T390-python.sh
\r
341 diff --git a/test/hooks b/test/T400-hooks.sh
\r
342 similarity index 100%
\r
343 rename from test/hooks
\r
344 rename to test/T400-hooks.sh
\r
345 diff --git a/test/argument-parsing b/test/T410-argument-parsing.sh
\r
346 similarity index 100%
\r
347 rename from test/argument-parsing
\r
348 rename to test/T410-argument-parsing.sh
\r
349 diff --git a/test/emacs-test-functions b/test/T420-emacs-test-functions.sh
\r
350 similarity index 100%
\r
351 rename from test/emacs-test-functions
\r
352 rename to test/T420-emacs-test-functions.sh
\r
353 diff --git a/test/emacs-address-cleaning b/test/T430-emacs-address-cleaning.sh
\r
354 similarity index 100%
\r
355 rename from test/emacs-address-cleaning
\r
356 rename to test/T430-emacs-address-cleaning.sh
\r
357 diff --git a/test/emacs-hello b/test/T440-emacs-hello.sh
\r
358 similarity index 100%
\r
359 rename from test/emacs-hello
\r
360 rename to test/T440-emacs-hello.sh
\r
361 diff --git a/test/emacs-show b/test/T450-emacs-show.sh
\r
362 similarity index 100%
\r
363 rename from test/emacs-show
\r
364 rename to test/T450-emacs-show.sh
\r
365 diff --git a/test/emacs-tree b/test/T460-emacs-tree.sh
\r
366 similarity index 100%
\r
367 rename from test/emacs-tree
\r
368 rename to test/T460-emacs-tree.sh
\r
369 diff --git a/test/missing-headers b/test/T470-missing-headers.sh
\r
370 similarity index 100%
\r
371 rename from test/missing-headers
\r
372 rename to test/T470-missing-headers.sh
\r
373 diff --git a/test/hex-escaping b/test/T480-hex-escaping.sh
\r
374 similarity index 100%
\r
375 rename from test/hex-escaping
\r
376 rename to test/T480-hex-escaping.sh
\r
377 diff --git a/test/parse-time-string b/test/T490-parse-time-string.sh
\r
378 similarity index 100%
\r
379 rename from test/parse-time-string
\r
380 rename to test/T490-parse-time-string.sh
\r
381 diff --git a/test/search-date b/test/T500-search-date.sh
\r
382 similarity index 100%
\r
383 rename from test/search-date
\r
384 rename to test/T500-search-date.sh
\r
385 diff --git a/test/thread-replies b/test/T510-thread-replies.sh
\r
386 similarity index 100%
\r
387 rename from test/thread-replies
\r
388 rename to test/T510-thread-replies.sh
\r
389 diff --git a/test/notmuch-test b/test/notmuch-test
\r
390 index d6fdd3a..b843712 100755
\r
391 --- a/test/notmuch-test
\r
392 +++ b/test/notmuch-test
\r
393 @@ -16,61 +16,7 @@ fi
\r
409 - search-position-overlap-bug
\r
410 - search-insufficient-from-quoting
\r
430 - emacs-large-search-buffer
\r
431 - emacs-subject-to-filename
\r
435 - search-folder-coherence
\r
440 - emacs-test-functions
\r
441 - emacs-address-cleaning
\r
447 - parse-time-string
\r
451 -TESTS=${NOTMUCH_TESTS:=$TESTS}
\r
452 +TESTS=${NOTMUCH_TESTS:-`echo T[0-9][0-9][0-9]-*.sh`}
\r
454 # Clean up any results from a previous run
\r
455 rm -r test-results >/dev/null 2>/dev/null
\r
456 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
457 index 2fcaba6..487075e 100644
\r
458 --- a/test/test-lib.sh
\r
459 +++ b/test/test-lib.sh
\r
460 @@ -27,6 +27,7 @@ shopt -u xpg_echo
\r
463 this_test=${this_test%.sh}
\r
464 +this_test=${this_test#T[0-9][0-9][0-9]-}
\r
466 # if --tee was passed, write the output not only to the terminal, but
\r
467 # additionally to the file test-results/$BASENAME.out, too.
\r