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