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