tests: test split's new --filter=CMD option
[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   split/filter                                  \
251   misc/split-a                                  \
252   misc/split-bchunk                             \
253   misc/split-fail                               \
254   misc/split-l                                  \
255   misc/split-lchunk                             \
256   misc/split-rchunk                             \
257   misc/stat-birthtime                           \
258   misc/stat-fmt                                 \
259   misc/stat-hyphen                              \
260   misc/stat-mount                               \
261   misc/stat-nanoseconds                         \
262   misc/stat-printf                              \
263   misc/stat-slash                               \
264   misc/stdbuf                                   \
265   misc/stty                                     \
266   misc/stty-invalid                             \
267   misc/stty-row-col                             \
268   misc/su-fail                                  \
269   misc/sum                                      \
270   misc/sum-sysv                                 \
271   misc/tac                                      \
272   misc/tac-continue                             \
273   misc/tail                                     \
274   misc/tee                                      \
275   misc/tee-dash                                 \
276   misc/test-diag                                \
277   misc/timeout                                  \
278   misc/timeout-parameters                       \
279   misc/tr                                       \
280   misc/tr-case-class                            \
281   misc/truncate-dangling-symlink                \
282   misc/truncate-dir-fail                        \
283   misc/truncate-fail-diag                       \
284   misc/truncate-fifo                            \
285   misc/truncate-no-create-missing               \
286   misc/truncate-overflow                        \
287   misc/truncate-parameters                      \
288   misc/truncate-relative                        \
289   misc/tsort                                    \
290   misc/tty-eof                                  \
291   misc/unexpand                                 \
292   misc/uniq                                     \
293   misc/uniq-perf                                \
294   misc/xattr                                    \
295   tail-2/wait                                   \
296   chmod/c-option                                \
297   chmod/equal-x                                 \
298   chmod/equals                                  \
299   chmod/inaccessible                            \
300   chmod/octal                                   \
301   chmod/setgid                                  \
302   chmod/silent                                  \
303   chmod/thru-dangling                           \
304   chmod/umask-x                                 \
305   chmod/usage                                   \
306   chown/deref                                   \
307   chown/preserve-root                           \
308   chown/separator                               \
309   cp/abuse                                      \
310   cp/acl                                        \
311   cp/backup-1                                   \
312   cp/backup-dir                                 \
313   cp/backup-is-src                              \
314   cp/cp-HL                                      \
315   cp/cp-deref                                   \
316   cp/cp-i                                       \
317   cp/cp-mv-backup                               \
318   cp/cp-parents                                 \
319   cp/deref-slink                                \
320   cp/dir-rm-dest                                \
321   cp/dir-slash                                  \
322   cp/dir-vs-file                                \
323   cp/existing-perm-race                         \
324   cp/fail-perm                                  \
325   cp/fiemap-empty                               \
326   cp/fiemap-perf                                \
327   cp/fiemap-2                                   \
328   cp/file-perm-race                             \
329   cp/into-self                                  \
330   cp/link                                       \
331   cp/link-no-deref                              \
332   cp/link-preserve                              \
333   cp/link-symlink                               \
334   cp/no-deref-link1                             \
335   cp/no-deref-link2                             \
336   cp/no-deref-link3                             \
337   cp/parent-perm                                \
338   cp/parent-perm-race                           \
339   cp/perm                                       \
340   cp/preserve-2                                 \
341   cp/preserve-slink-time                        \
342   cp/proc-short-read                            \
343   cp/proc-zero-len                              \
344   cp/r-vs-symlink                               \
345   cp/reflink-auto                               \
346   cp/reflink-perm                               \
347   cp/same-file                                  \
348   cp/slink-2-slink                              \
349   cp/sparse                                     \
350   cp/sparse-to-pipe                             \
351   cp/special-f                                  \
352   cp/src-base-dot                               \
353   cp/symlink-slash                              \
354   cp/thru-dangling                              \
355   df/unreadable                                 \
356   dd/direct                                     \
357   dd/misc                                       \
358   dd/nocache                                    \
359   dd/not-rewound                                \
360   dd/reblock                                    \
361   dd/skip-seek                                  \
362   dd/skip-seek2                                 \
363   dd/skip-seek-past-file                        \
364   dd/stderr                                     \
365   dd/unblock                                    \
366   dd/unblock-sync                               \
367   df/total-verify                               \
368   du/2g                                         \
369   du/8gb                                        \
370   du/basic                                      \
371   du/bigtime                                    \
372   du/deref                                      \
373   du/deref-args                                 \
374   du/exclude                                    \
375   du/fd-leak                                    \
376   du/files0-from                                \
377   du/files0-from-dir                            \
378   du/hard-link                                  \
379   du/inacc-dest                                 \
380   du/inacc-dir                                  \
381   du/inaccessible-cwd                           \
382   du/long-from-unreadable                       \
383   du/long-sloop                                 \
384   du/max-depth                                  \
385   du/move-dir-while-traversing                  \
386   du/no-deref                                   \
387   du/no-x                                       \
388   du/one-file-system                            \
389   du/restore-wd                                 \
390   du/slash                                      \
391   du/slink                                      \
392   du/trailing-slash                             \
393   du/two-args                                   \
394   id/no-context                                 \
395   install/basic-1                               \
396   install/create-leading                        \
397   install/d-slashdot                            \
398   install/install-C                             \
399   install/install-C-selinux                     \
400   install/strip-program                         \
401   install/trap                                  \
402   ln/backup-1                                   \
403   ln/hard-backup                                \
404   ln/hard-to-sym                                \
405   ln/misc                                       \
406   ln/sf-1                                       \
407   ln/slash-decorated-nonexistent-dest           \
408   ln/target-1                                   \
409   ls/abmon-align                                \
410   ls/color-clear-to-eol                         \
411   ls/color-dtype-dir                            \
412   ls/color-norm                                 \
413   ls/dangle                                     \
414   ls/dired                                      \
415   ls/file-type                                  \
416   ls/follow-slink                               \
417   ls/infloop                                    \
418   ls/inode                                      \
419   ls/m-option                                   \
420   ls/multihardlink                              \
421   ls/no-arg                                     \
422   ls/no-cap                                     \
423   ls/proc-selinux-segfault                      \
424   ls/readdir-mountpoint-inode                   \
425   ls/recursive                                  \
426   ls/rt-1                                       \
427   ls/stat-dtype                                 \
428   ls/stat-failed                                \
429   ls/stat-free-symlinks                         \
430   ls/stat-vs-dirent                             \
431   ls/symlink-slash                              \
432   ls/x-option                                   \
433   mkdir/p-1                                     \
434   mkdir/p-2                                     \
435   mkdir/p-3                                     \
436   mkdir/p-slashdot                              \
437   mkdir/p-thru-slink                            \
438   mkdir/p-v                                     \
439   mkdir/parents                                 \
440   mkdir/perm                                    \
441   mkdir/selinux                                 \
442   mkdir/special-1                               \
443   mkdir/t-slash                                 \
444   mv/acl                                        \
445   mv/atomic                                     \
446   mv/atomic2                                    \
447   mv/backup-dir                                 \
448   mv/backup-is-src                              \
449   mv/childproof                                 \
450   mv/diag                                       \
451   mv/dir-file                                   \
452   mv/dir2dir                                    \
453   mv/dup-source                                 \
454   mv/force                                      \
455   mv/hard-2                                     \
456   mv/hard-3                                     \
457   mv/hard-4                                     \
458   mv/hard-link-1                                \
459   mv/hard-verbose                               \
460   mv/i-1                                        \
461   mv/i-2                                        \
462   mv/i-3                                        \
463   mv/i-4                                        \
464   mv/i-5                                        \
465   mv/i-link-no                                  \
466   mv/into-self                                  \
467   mv/into-self-2                                \
468   mv/into-self-3                                \
469   mv/into-self-4                                \
470   mv/leak-fd                                    \
471   mv/mv-n                                       \
472   mv/mv-special-1                               \
473   mv/no-target-dir                              \
474   mv/part-fail                                  \
475   mv/part-hardlink                              \
476   mv/part-rename                                \
477   mv/part-symlink                               \
478   mv/partition-perm                             \
479   mv/perm-1                                     \
480   mv/to-symlink                                 \
481   mv/trailing-slash                             \
482   mv/update                                     \
483   readlink/can-e                                \
484   readlink/can-f                                \
485   readlink/can-m                                \
486   readlink/rl-1                                 \
487   rmdir/fail-perm                               \
488   rmdir/ignore                                  \
489   rmdir/t-slash                                 \
490   tail-2/assert-2                               \
491   tail-2/big-4gb                                \
492   tail-2/flush-initial                          \
493   tail-2/follow-name                            \
494   tail-2/follow-stdin                           \
495   tail-2/pipe-f                                 \
496   tail-2/pipe-f2                                \
497   tail-2/proc-ksyms                             \
498   tail-2/start-middle                           \
499   touch/60-seconds                              \
500   touch/dangling-symlink                        \
501   touch/dir-1                                   \
502   touch/fail-diag                               \
503   touch/fifo                                    \
504   touch/no-create-missing                       \
505   touch/no-dereference                          \
506   touch/no-rights                               \
507   touch/not-owner                               \
508   touch/obsolescent                             \
509   touch/read-only                               \
510   touch/relative                                \
511   touch/trailing-slash                          \
512   $(root_tests)
513
514 pr_data =                                       \
515   pr/0F                                         \
516   pr/0FF                                        \
517   pr/0FFnt                                      \
518   pr/0FFt                                       \
519   pr/0FnFnt                                     \
520   pr/0FnFt                                      \
521   pr/0Fnt                                       \
522   pr/0Ft                                        \
523   pr/2-S_f-t_notab                              \
524   pr/2-Sf-t_notab                               \
525   pr/2f-t_notab                                 \
526   pr/2s_f-t_notab                               \
527   pr/2s_w60f-t_nota                             \
528   pr/2sf-t_notab                                \
529   pr/2sw60f-t_notab                             \
530   pr/2w60f-t_notab                              \
531   pr/3-0F                                       \
532   pr/3-5l24f-t                                  \
533   pr/3-FF                                       \
534   pr/3a2l17-FF                                  \
535   pr/3a3f-0F                                    \
536   pr/3a3l15-t                                   \
537   pr/3a3l15f-t                                  \
538   pr/3b2l17-FF                                  \
539   pr/3b3f-0F                                    \
540   pr/3b3f-0FF                                   \
541   pr/3b3f-FF                                    \
542   pr/3b3l15-t                                   \
543   pr/3b3l15f-t                                  \
544   pr/3f-0F                                      \
545   pr/3f-FF                                      \
546   pr/3l24-t                                     \
547   pr/3l24f-t                                    \
548   pr/3ml24-FF                                   \
549   pr/3ml24-t                                    \
550   pr/3ml24-t-FF                                 \
551   pr/3ml24f-t                                   \
552   pr/4-7l24-FF                                  \
553   pr/4l24-FF                                    \
554   pr/FF                                         \
555   pr/FFn                                        \
556   pr/FFtn                                       \
557   pr/FnFn                                       \
558   pr/Ja3l24f-lm                                 \
559   pr/Jb3l24f-lm                                 \
560   pr/Jml24f-lm-lo                               \
561   pr/W-72l24f-ll                                \
562   pr/W20l24f-ll                                 \
563   pr/W26l24f-ll                                 \
564   pr/W27l24f-ll                                 \
565   pr/W28l24f-ll                                 \
566   pr/W35Ja3l24f-lm                              \
567   pr/W35Jb3l24f-lm                              \
568   pr/W35Jml24f-lmlo                             \
569   pr/W35a3l24f-lm                               \
570   pr/W35b3l24f-lm                               \
571   pr/W35ml24f-lm-lo                             \
572   pr/W72Jl24f-ll                                \
573   pr/a2l15-FF                                   \
574   pr/a2l17-FF                                   \
575   pr/a3-0F                                      \
576   pr/a3f-0F                                     \
577   pr/a3f-0FF                                    \
578   pr/a3f-FF                                     \
579   pr/a3l15-t                                    \
580   pr/a3l15f-t                                   \
581   pr/a3l24f-lm                                  \
582   pr/b2l15-FF                                   \
583   pr/b2l17-FF                                   \
584   pr/b3-0F                                      \
585   pr/b3f-0F                                     \
586   pr/b3f-0FF                                    \
587   pr/b3f-FF                                     \
588   pr/b3l15-t                                    \
589   pr/b3l15f-t                                   \
590   pr/b3l24f-lm                                  \
591   pr/l24-FF                                     \
592   pr/l24-t                                      \
593   pr/l24f-t                                     \
594   pr/loli                                       \
595   pr/ml20-FF-t                                  \
596   pr/ml24-FF                                    \
597   pr/ml24-t                                     \
598   pr/ml24-t-FF                                  \
599   pr/ml24f-0F                                   \
600   pr/ml24f-lm-lo                                \
601   pr/ml24f-t                                    \
602   pr/ml24f-t-0F                                 \
603   pr/n+2-5l24f-0FF                              \
604   pr/n+2l24f-0FF                                \
605   pr/n+2l24f-bl                                 \
606   pr/n+3-7l24-FF                                \
607   pr/n+3l24f-0FF                                \
608   pr/n+3l24f-bl                                 \
609   pr/n+3ml20f-bl-FF                             \
610   pr/n+3ml24f-bl-tn                             \
611   pr/n+3ml24f-tn-bl                             \
612   pr/n+4-8a2l17-FF                              \
613   pr/n+4b2l17f-0FF                              \
614   pr/n+5-8b3l17f-FF                             \
615   pr/n+5a3l13f-0FF                              \
616   pr/n+6a2l17-FF                                \
617   pr/n+6b3l13f-FF                               \
618   pr/n+7l24-FF                                  \
619   pr/n+8l20-FF                                  \
620   pr/nJml24f-lmlmlo                             \
621   pr/nJml24f-lmlolm                             \
622   pr/nN1+3l24f-bl                               \
623   pr/nN15l24f-bl                                \
624   pr/nSml20-bl-FF                               \
625   pr/nSml20-t-t-FF                              \
626   pr/nSml20-t-tFFFF                             \
627   pr/nSml24-bl-FF                               \
628   pr/nSml24-t-t-FF                              \
629   pr/nSml24-t-tFFFF                             \
630   pr/nl24f-bl                                   \
631   pr/o3Jml24f-lm-lo                             \
632   pr/o3a3Sl24f-tn                               \
633   pr/o3a3Snl24f-tn                              \
634   pr/o3a3l24f-tn                                \
635   pr/o3b3Sl24f-tn                               \
636   pr/o3b3Snl24f-tn                              \
637   pr/o3b3l24f-tn                                \
638   pr/o3mSl24f-bl-tn                             \
639   pr/o3mSnl24fbltn                              \
640   pr/o3ml24f-bl-tn                              \
641   pr/t-0FF                                      \
642   pr/t-FF                                       \
643   pr/t-bl                                       \
644   pr/t-t                                        \
645   pr/tFFn                                       \
646   pr/tFFt                                       \
647   pr/tFFt-bl                                    \
648   pr/tFFt-ll                                    \
649   pr/tFFt-lm                                    \
650   pr/tFnFt                                      \
651   pr/t_notab                                    \
652   pr/t_tab                                      \
653   pr/t_tab_                                     \
654   pr/ta3-0FF                                    \
655   pr/ta3-FF                                     \
656   pr/tb3-0FF                                    \
657   pr/tb3-FF                                     \
658   pr/tn                                         \
659   pr/tn2e5o3-t_tab                              \
660   pr/tn2e8-t_tab                                \
661   pr/tn2e8o3-t_tab                              \
662   pr/tn_2e8-t_tab                               \
663   pr/tn_2e8S-t_tab                              \
664   pr/tne8-t_tab                                 \
665   pr/tne8o3-t_tab                               \
666   pr/tt-0FF                                     \
667   pr/tt-FF                                      \
668   pr/tt-bl                                      \
669   pr/tt-t                                       \
670   pr/tta3-0FF                                   \
671   pr/tta3-FF                                    \
672   pr/ttb3-0FF                                   \
673   pr/ttb3-FF                                    \
674   pr/w72l24f-ll
675
676 include $(srcdir)/check.mk