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