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