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