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