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