od: align multiple -t specs
[platform/upstream/coreutils.git] / tests / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-.
2
3 # Sort in traditional ASCII order, regardless of the current locale;
4 # otherwise we may get into trouble with distinct strings that the
5 # current locale considers to be equal.
6 ASSORT = LC_ALL=C sort
7
8 EXTRA_DIST =            \
9   Coreutils.pm          \
10   CuTmpdir.pm           \
11   README                \
12   check.mk              \
13   envvar-check          \
14   input-tty             \
15   lang-default          \
16   other-fs-tmpdir       \
17   require-perl          \
18   sample-test           \
19   setgid-check          \
20   test-lib.sh           \
21   $(pr_data)
22
23 root_tests =                                    \
24   chown/basic                                   \
25   cp/cp-a-selinux                               \
26   cp/preserve-gid                               \
27   cp/special-bits                               \
28   ls/nameless-uid                               \
29   misc/chcon                                    \
30   misc/selinux                                  \
31   misc/truncate-owned-by-other                  \
32   mkdir/writable-under-readonly                 \
33   mv/sticky-to-xpart                            \
34   rm/fail-2eperm                                \
35   rm/no-give-up                                 \
36   rm/one-file-system                            \
37   tail-2/append-only                            \
38   touch/now-owned-by-other
39
40 .PHONY: check-root
41 check-root:
42         $(MAKE) check TESTS='$(root_tests)'
43
44 check-recursive: root-hint
45
46 # Advertise `check-root' target.
47 .PHONY: root-hint
48 root-hint:
49         @echo '***********************************************************'
50         @echo "NOTICE: Some tests may be run only as root."
51         @echo "  See the 'Running tests as root' section in README."
52         @echo '***********************************************************'
53
54 EXTRA_DIST += $(TESTS)
55
56 # Do not choose a name that is a shell keyword like 'if', or a
57 # commonly-used utility like 'cat' or 'test', as the name of a test.
58 # Otherwise, VPATH builds will fail on hosts like Solaris, since they
59 # will expand 'if test ...' to 'if .../test ...', and the '.../test'
60 # will execute the test script rather than the standard utility.
61
62 # Notes on the ordering of these tests:
63 # Place early in the list tests of the tools that
64 # are most commonly used in test scripts themselves.
65 # E.g., nearly every test script uses rm and chmod.
66 # help-version comes early because it's a basic sanity test.
67 # Put seq early, since lots of other tests use it.
68 # Put tests that sleep early, but not all together, so in parallel builds
69 # they share time with tests that burn CPU, not with others that sleep.
70 # Put head-elide-tail early, because it's long-running.
71
72 TESTS =                                         \
73   misc/help-version                             \
74   misc/invalid-opt                              \
75   rm/cycle                                      \
76   chmod/no-x                                    \
77   chgrp/basic                                   \
78   rm/dangling-symlink                           \
79   misc/ls-time                                  \
80   rm/deep-1                                     \
81   rm/deep-2                                     \
82   rm/dir-no-w                                   \
83   rm/dir-nonrecur                               \
84   rm/dot-rel                                    \
85   rm/isatty                                     \
86   rm/empty-inacc                                \
87   rm/empty-name                                 \
88   rm/f-1                                        \
89   rm/fail-eacces                                \
90   rm/fail-eperm                                 \
91   tail-2/assert                                 \
92   rm/hash                                       \
93   rm/i-1                                        \
94   rm/i-never                                    \
95   rm/i-no-r                                     \
96   tail-2/infloop-1                              \
97   rm/ignorable                                  \
98   rm/inaccessible                               \
99   rm/interactive-always                         \
100   rm/interactive-once                           \
101   rm/ir-1                                       \
102   rm/r-1                                        \
103   rm/r-2                                        \
104   rm/r-3                                        \
105   rm/r-4                                        \
106   rm/readdir-bug                                \
107   rm/rm1                                        \
108   touch/empty-file                              \
109   rm/rm2                                        \
110   rm/rm3                                        \
111   rm/rm4                                        \
112   rm/rm5                                        \
113   rm/sunos-1                                    \
114   rm/unread2                                    \
115   rm/unread3                                    \
116   rm/unreadable                                 \
117   rm/v-slash                                    \
118   chgrp/default-no-deref                        \
119   chgrp/deref                                   \
120   chgrp/no-x                                    \
121   chgrp/posix-H                                 \
122   chgrp/recurse                                 \
123   misc/test                                     \
124   misc/seq                                      \
125   misc/head                                     \
126   misc/head-elide-tail                          \
127   tail-2/tail-n0f                               \
128   misc/ls-misc                                  \
129   misc/date                                     \
130   misc/ptx-overrun                              \
131   misc/xstrtol                                  \
132   misc/od                                       \
133   misc/mktemp                                   \
134   misc/arch                                     \
135   misc/pr                                       \
136   misc/join                                     \
137   pr/pr-tests                                   \
138   misc/df-P                                     \
139   misc/pwd-unreadable-parent                    \
140   misc/chcon-fail                               \
141   misc/cut                                      \
142   misc/wc                                       \
143   misc/wc-files0-from                           \
144   misc/wc-files0                                \
145   misc/cat-proc                                 \
146   misc/base64                                   \
147   misc/basename                                 \
148   misc/close-stdout                             \
149   misc/comm                                     \
150   misc/csplit                                   \
151   misc/date-sec                                 \
152   misc/dircolors                                \
153   misc/df                                       \
154   misc/dirname                                  \
155   misc/expand                                   \
156   misc/expr                                     \
157   misc/factor                                   \
158   misc/false-status                             \
159   misc/fmt                                      \
160   misc/fmt-long-line                            \
161   misc/fold                                     \
162   misc/groups-dash                              \
163   misc/groups-version                           \
164   misc/head-c                                   \
165   misc/head-pos                                 \
166   misc/id-context                               \
167   misc/md5sum                                   \
168   misc/md5sum-newline                           \
169   misc/mknod                                    \
170   misc/nice                                     \
171   misc/nl                                       \
172   misc/nohup                                    \
173   misc/od-N                                     \
174   misc/od-multiple-t                            \
175   misc/od-x8                                    \
176   misc/paste                                    \
177   misc/pathchk1                                 \
178   misc/printf                                   \
179   misc/printf-cov                               \
180   misc/printf-hex                               \
181   misc/printf-surprise                          \
182   misc/pwd-long                                 \
183   misc/readlink-fp-loop                         \
184   misc/runcon-no-reorder                        \
185   misc/sha1sum                                  \
186   misc/sha1sum-vec                              \
187   misc/sha224sum                                \
188   misc/sha256sum                                \
189   misc/sha384sum                                \
190   misc/sha512sum                                \
191   misc/shred-exact                              \
192   misc/shred-remove                             \
193   misc/shuf                                     \
194   misc/sort                                     \
195   misc/sort-compress                            \
196   misc/sort-merge                               \
197   misc/sort-rand                                \
198   misc/split-a                                  \
199   misc/split-fail                               \
200   misc/split-l                                  \
201   misc/stat-fmt                                 \
202   misc/stat-printf                              \
203   misc/stty                                     \
204   misc/stty-invalid                             \
205   misc/stty-row-col                             \
206   misc/sum                                      \
207   misc/sum-sysv                                 \
208   misc/tac                                      \
209   misc/tac-continue                             \
210   misc/tail                                     \
211   misc/tee                                      \
212   misc/tee-dash                                 \
213   misc/test-diag                                \
214   misc/timeout                                  \
215   misc/timeout-parameters                       \
216   misc/tr                                       \
217   misc/truncate-dangling-symlink                \
218   misc/truncate-dir-fail                        \
219   misc/truncate-fail-diag                       \
220   misc/truncate-fifo                            \
221   misc/truncate-no-create-missing               \
222   misc/truncate-overflow                        \
223   misc/truncate-parameters                      \
224   misc/truncate-relative                        \
225   misc/tsort                                    \
226   misc/tty-eof                                  \
227   misc/unexpand                                 \
228   misc/uniq                                     \
229   chmod/c-option                                \
230   chmod/equal-x                                 \
231   chmod/equals                                  \
232   chmod/inaccessible                            \
233   chmod/octal                                   \
234   chmod/setgid                                  \
235   chmod/thru-dangling                           \
236   chmod/umask-x                                 \
237   chmod/usage                                   \
238   chown/deref                                   \
239   chown/preserve-root                           \
240   chown/separator                               \
241   cp/abuse                                      \
242   cp/acl                                        \
243   cp/backup-1                                   \
244   cp/backup-dir                                 \
245   cp/backup-is-src                              \
246   cp/cp-HL                                      \
247   cp/cp-deref                                   \
248   cp/cp-i                                       \
249   cp/cp-mv-backup                               \
250   cp/cp-parents                                 \
251   cp/deref-slink                                \
252   cp/dir-rm-dest                                \
253   cp/dir-slash                                  \
254   cp/dir-vs-file                                \
255   cp/existing-perm-race                         \
256   cp/fail-perm                                  \
257   cp/file-perm-race                             \
258   cp/into-self                                  \
259   cp/link                                       \
260   cp/link-no-deref                              \
261   cp/link-preserve                              \
262   cp/no-deref-link1                             \
263   cp/no-deref-link2                             \
264   cp/no-deref-link3                             \
265   cp/parent-perm                                \
266   cp/parent-perm-race                           \
267   cp/perm                                       \
268   cp/preserve-2                                 \
269   cp/proc-zero-len                              \
270   cp/r-vs-symlink                               \
271   cp/same-file                                  \
272   cp/slink-2-slink                              \
273   cp/sparse                                     \
274   cp/special-f                                  \
275   cp/src-base-dot                               \
276   cp/symlink-slash                              \
277   cp/thru-dangling                              \
278   dd/misc                                       \
279   dd/not-rewound                                \
280   dd/skip-seek                                  \
281   dd/skip-seek2                                 \
282   dd/unblock-sync                               \
283   du/2g                                         \
284   du/8gb                                        \
285   du/basic                                      \
286   du/deref                                      \
287   du/deref-args                                 \
288   du/exclude                                    \
289   du/fd-leak                                    \
290   du/files0-from                                \
291   du/hard-link                                  \
292   du/inacc-dest                                 \
293   du/inacc-dir                                  \
294   du/inaccessible-cwd                           \
295   du/long-from-unreadable                       \
296   du/long-sloop                                 \
297   du/no-deref                                   \
298   du/no-x                                       \
299   du/one-file-system                            \
300   du/restore-wd                                 \
301   du/slash                                      \
302   du/slink                                      \
303   du/trailing-slash                             \
304   du/two-args                                   \
305   install/basic-1                               \
306   install/create-leading                        \
307   install/d-slashdot                            \
308   install/trap                                  \
309   ln/backup-1                                   \
310   ln/hard-backup                                \
311   ln/misc                                       \
312   ln/sf-1                                       \
313   ln/target-1                                   \
314   ls/color-dtype-dir                            \
315   ls/dangle                                     \
316   ls/dired                                      \
317   ls/file-type                                  \
318   ls/follow-slink                               \
319   ls/infloop                                    \
320   ls/inode                                      \
321   ls/m-option                                   \
322   ls/no-arg                                     \
323   ls/proc-selinux-segfault                      \
324   ls/recursive                                  \
325   ls/rt-1                                       \
326   ls/stat-dtype                                 \
327   ls/stat-failed                                \
328   ls/stat-free-symlinks                         \
329   ls/stat-vs-dirent                             \
330   ls/symlink-slash                              \
331   ls/x-option                                   \
332   mkdir/p-1                                     \
333   mkdir/p-2                                     \
334   mkdir/p-3                                     \
335   mkdir/p-slashdot                              \
336   mkdir/p-thru-slink                            \
337   mkdir/p-v                                     \
338   mkdir/parents                                 \
339   mkdir/perm                                    \
340   mkdir/selinux                                 \
341   mkdir/special-1                               \
342   mkdir/t-slash                                 \
343   mv/acl                                        \
344   mv/atomic                                     \
345   mv/atomic2                                    \
346   mv/backup-dir                                 \
347   mv/backup-is-src                              \
348   mv/childproof                                 \
349   mv/diag                                       \
350   mv/dir-file                                   \
351   mv/dir2dir                                    \
352   mv/dup-source                                 \
353   mv/force                                      \
354   mv/hard-2                                     \
355   mv/hard-3                                     \
356   mv/hard-4                                     \
357   mv/hard-link-1                                \
358   mv/hard-verbose                               \
359   mv/i-1                                        \
360   mv/i-2                                        \
361   mv/i-3                                        \
362   mv/i-4                                        \
363   mv/i-5                                        \
364   mv/i-link-no                                  \
365   mv/into-self                                  \
366   mv/into-self-2                                \
367   mv/into-self-3                                \
368   mv/into-self-4                                \
369   mv/leak-fd                                    \
370   mv/mv-special-1                               \
371   mv/no-target-dir                              \
372   mv/part-fail                                  \
373   mv/part-hardlink                              \
374   mv/part-rename                                \
375   mv/part-symlink                               \
376   mv/partition-perm                             \
377   mv/perm-1                                     \
378   mv/reply-no                                   \
379   mv/to-symlink                                 \
380   mv/trailing-slash                             \
381   mv/update                                     \
382   readlink/can-e                                \
383   readlink/can-f                                \
384   readlink/can-m                                \
385   readlink/rl-1                                 \
386   rmdir/fail-perm                               \
387   rmdir/ignore                                  \
388   rmdir/t-slash                                 \
389   tail-2/assert-2                               \
390   tail-2/big-4gb                                \
391   tail-2/proc-ksyms                             \
392   tail-2/start-middle                           \
393   touch/dangling-symlink                        \
394   touch/dir-1                                   \
395   touch/fail-diag                               \
396   touch/fifo                                    \
397   touch/no-create-missing                       \
398   touch/no-rights                               \
399   touch/not-owner                               \
400   touch/obsolescent                             \
401   touch/read-only                               \
402   touch/relative                                \
403   $(root_tests)
404
405 pr_data =                                       \
406   pr/0F                                         \
407   pr/0FF                                        \
408   pr/0FFnt                                      \
409   pr/0FFt                                       \
410   pr/0FnFnt                                     \
411   pr/0FnFt                                      \
412   pr/0Fnt                                       \
413   pr/0Ft                                        \
414   pr/2-S_f-t_notab                              \
415   pr/2-Sf-t_notab                               \
416   pr/2f-t_notab                                 \
417   pr/2s_f-t_notab                               \
418   pr/2s_w60f-t_nota                             \
419   pr/2sf-t_notab                                \
420   pr/2sw60f-t_notab                             \
421   pr/2w60f-t_notab                              \
422   pr/3-0F                                       \
423   pr/3-5l24f-t                                  \
424   pr/3-FF                                       \
425   pr/3a2l17-FF                                  \
426   pr/3a3f-0F                                    \
427   pr/3a3l15-t                                   \
428   pr/3a3l15f-t                                  \
429   pr/3b2l17-FF                                  \
430   pr/3b3f-0F                                    \
431   pr/3b3f-0FF                                   \
432   pr/3b3f-FF                                    \
433   pr/3b3l15-t                                   \
434   pr/3b3l15f-t                                  \
435   pr/3f-0F                                      \
436   pr/3f-FF                                      \
437   pr/3l24-t                                     \
438   pr/3l24f-t                                    \
439   pr/3ml24-FF                                   \
440   pr/3ml24-t                                    \
441   pr/3ml24-t-FF                                 \
442   pr/3ml24f-t                                   \
443   pr/4-7l24-FF                                  \
444   pr/4l24-FF                                    \
445   pr/FF                                         \
446   pr/FFn                                        \
447   pr/FFtn                                       \
448   pr/FnFn                                       \
449   pr/Ja3l24f-lm                                 \
450   pr/Jb3l24f-lm                                 \
451   pr/Jml24f-lm-lo                               \
452   pr/W-72l24f-ll                                \
453   pr/W20l24f-ll                                 \
454   pr/W26l24f-ll                                 \
455   pr/W27l24f-ll                                 \
456   pr/W28l24f-ll                                 \
457   pr/W35Ja3l24f-lm                              \
458   pr/W35Jb3l24f-lm                              \
459   pr/W35Jml24f-lmlo                             \
460   pr/W35a3l24f-lm                               \
461   pr/W35b3l24f-lm                               \
462   pr/W35ml24f-lm-lo                             \
463   pr/W72Jl24f-ll                                \
464   pr/a2l15-FF                                   \
465   pr/a2l17-FF                                   \
466   pr/a3-0F                                      \
467   pr/a3f-0F                                     \
468   pr/a3f-0FF                                    \
469   pr/a3f-FF                                     \
470   pr/a3l15-t                                    \
471   pr/a3l15f-t                                   \
472   pr/a3l24f-lm                                  \
473   pr/b2l15-FF                                   \
474   pr/b2l17-FF                                   \
475   pr/b3-0F                                      \
476   pr/b3f-0F                                     \
477   pr/b3f-0FF                                    \
478   pr/b3f-FF                                     \
479   pr/b3l15-t                                    \
480   pr/b3l15f-t                                   \
481   pr/b3l24f-lm                                  \
482   pr/l24-FF                                     \
483   pr/l24-t                                      \
484   pr/l24f-t                                     \
485   pr/loli                                       \
486   pr/ml20-FF-t                                  \
487   pr/ml24-FF                                    \
488   pr/ml24-t                                     \
489   pr/ml24-t-FF                                  \
490   pr/ml24f-0F                                   \
491   pr/ml24f-lm-lo                                \
492   pr/ml24f-t                                    \
493   pr/ml24f-t-0F                                 \
494   pr/n+2-5l24f-0FF                              \
495   pr/n+2l24f-0FF                                \
496   pr/n+2l24f-bl                                 \
497   pr/n+3-7l24-FF                                \
498   pr/n+3l24f-0FF                                \
499   pr/n+3l24f-bl                                 \
500   pr/n+3ml20f-bl-FF                             \
501   pr/n+3ml24f-bl-tn                             \
502   pr/n+3ml24f-tn-bl                             \
503   pr/n+4-8a2l17-FF                              \
504   pr/n+4b2l17f-0FF                              \
505   pr/n+5-8b3l17f-FF                             \
506   pr/n+5a3l13f-0FF                              \
507   pr/n+6a2l17-FF                                \
508   pr/n+6b3l13f-FF                               \
509   pr/n+7l24-FF                                  \
510   pr/n+8l20-FF                                  \
511   pr/nJml24f-lmlmlo                             \
512   pr/nJml24f-lmlolm                             \
513   pr/nN1+3l24f-bl                               \
514   pr/nN15l24f-bl                                \
515   pr/nSml20-bl-FF                               \
516   pr/nSml20-t-t-FF                              \
517   pr/nSml20-t-tFFFF                             \
518   pr/nSml24-bl-FF                               \
519   pr/nSml24-t-t-FF                              \
520   pr/nSml24-t-tFFFF                             \
521   pr/nl24f-bl                                   \
522   pr/o3Jml24f-lm-lo                             \
523   pr/o3a3Sl24f-tn                               \
524   pr/o3a3Snl24f-tn                              \
525   pr/o3a3l24f-tn                                \
526   pr/o3b3Sl24f-tn                               \
527   pr/o3b3Snl24f-tn                              \
528   pr/o3b3l24f-tn                                \
529   pr/o3mSl24f-bl-tn                             \
530   pr/o3mSnl24fbltn                              \
531   pr/o3ml24f-bl-tn                              \
532   pr/t-0FF                                      \
533   pr/t-FF                                       \
534   pr/t-bl                                       \
535   pr/t-t                                        \
536   pr/tFFn                                       \
537   pr/tFFt                                       \
538   pr/tFFt-bl                                    \
539   pr/tFFt-ll                                    \
540   pr/tFFt-lm                                    \
541   pr/tFnFt                                      \
542   pr/t_notab                                    \
543   pr/t_tab                                      \
544   pr/t_tab_                                     \
545   pr/ta3-0FF                                    \
546   pr/ta3-FF                                     \
547   pr/tb3-0FF                                    \
548   pr/tb3-FF                                     \
549   pr/tn                                         \
550   pr/tn2e5o3-t_tab                              \
551   pr/tn2e8-t_tab                                \
552   pr/tn2e8o3-t_tab                              \
553   pr/tn_2e8-t_tab                               \
554   pr/tn_2e8S-t_tab                              \
555   pr/tne8-t_tab                                 \
556   pr/tne8o3-t_tab                               \
557   pr/tt-0FF                                     \
558   pr/tt-FF                                      \
559   pr/tt-bl                                      \
560   pr/tt-t                                       \
561   pr/tta3-0FF                                   \
562   pr/tta3-FF                                    \
563   pr/ttb3-0FF                                   \
564   pr/ttb3-FF                                    \
565   pr/w72l24f-ll
566
567 include $(srcdir)/check.mk