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