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