dd: Better handle user specified offsets that are too big
[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-remove                             \
198   misc/shuf                                     \
199   misc/sort                                     \
200   misc/sort-compress                            \
201   misc/sort-files0-from                         \
202   misc/sort-merge                               \
203   misc/sort-rand                                \
204   misc/sort-version                             \
205   misc/split-a                                  \
206   misc/split-fail                               \
207   misc/split-l                                  \
208   misc/stat-fmt                                 \
209   misc/stat-printf                              \
210   misc/stty                                     \
211   misc/stty-invalid                             \
212   misc/stty-row-col                             \
213   misc/sum                                      \
214   misc/sum-sysv                                 \
215   misc/tac                                      \
216   misc/tac-continue                             \
217   misc/tail                                     \
218   misc/tee                                      \
219   misc/tee-dash                                 \
220   misc/test-diag                                \
221   misc/timeout                                  \
222   misc/timeout-parameters                       \
223   misc/tr                                       \
224   misc/truncate-dangling-symlink                \
225   misc/truncate-dir-fail                        \
226   misc/truncate-fail-diag                       \
227   misc/truncate-fifo                            \
228   misc/truncate-no-create-missing               \
229   misc/truncate-overflow                        \
230   misc/truncate-parameters                      \
231   misc/truncate-relative                        \
232   misc/tsort                                    \
233   misc/tty-eof                                  \
234   misc/unexpand                                 \
235   misc/uniq                                     \
236   chmod/c-option                                \
237   chmod/equal-x                                 \
238   chmod/equals                                  \
239   chmod/inaccessible                            \
240   chmod/octal                                   \
241   chmod/setgid                                  \
242   chmod/silent                                  \
243   chmod/thru-dangling                           \
244   chmod/umask-x                                 \
245   chmod/usage                                   \
246   chown/deref                                   \
247   chown/preserve-root                           \
248   chown/separator                               \
249   cp/abuse                                      \
250   cp/acl                                        \
251   cp/backup-1                                   \
252   cp/backup-dir                                 \
253   cp/backup-is-src                              \
254   cp/cp-HL                                      \
255   cp/cp-deref                                   \
256   cp/cp-i                                       \
257   cp/cp-mv-backup                               \
258   cp/cp-parents                                 \
259   cp/deref-slink                                \
260   cp/dir-rm-dest                                \
261   cp/dir-slash                                  \
262   cp/dir-vs-file                                \
263   cp/existing-perm-race                         \
264   cp/fail-perm                                  \
265   cp/file-perm-race                             \
266   cp/into-self                                  \
267   cp/link                                       \
268   cp/link-no-deref                              \
269   cp/link-preserve                              \
270   cp/no-deref-link1                             \
271   cp/no-deref-link2                             \
272   cp/no-deref-link3                             \
273   cp/parent-perm                                \
274   cp/parent-perm-race                           \
275   cp/perm                                       \
276   cp/preserve-2                                 \
277   cp/proc-zero-len                              \
278   cp/r-vs-symlink                               \
279   cp/same-file                                  \
280   cp/slink-2-slink                              \
281   cp/sparse                                     \
282   cp/special-f                                  \
283   cp/src-base-dot                               \
284   cp/symlink-slash                              \
285   cp/thru-dangling                              \
286   dd/misc                                       \
287   dd/not-rewound                                \
288   dd/reblock                                    \
289   dd/skip-seek                                  \
290   dd/skip-seek2                                 \
291   dd/skip-seek-past-file                        \
292   dd/unblock-sync                               \
293   df/total-verify                               \
294   du/2g                                         \
295   du/8gb                                        \
296   du/basic                                      \
297   du/deref                                      \
298   du/deref-args                                 \
299   du/exclude                                    \
300   du/fd-leak                                    \
301   du/files0-from                                \
302   du/hard-link                                  \
303   du/inacc-dest                                 \
304   du/inacc-dir                                  \
305   du/inaccessible-cwd                           \
306   du/long-from-unreadable                       \
307   du/long-sloop                                 \
308   du/no-deref                                   \
309   du/no-x                                       \
310   du/one-file-system                            \
311   du/restore-wd                                 \
312   du/slash                                      \
313   du/slink                                      \
314   du/trailing-slash                             \
315   du/two-args                                   \
316   install/basic-1                               \
317   install/create-leading                        \
318   install/d-slashdot                            \
319   install/strip-program                         \
320   install/trap                                  \
321   ln/backup-1                                   \
322   ln/hard-backup                                \
323   ln/misc                                       \
324   ln/sf-1                                       \
325   ln/target-1                                   \
326   ls/color-dtype-dir                            \
327   ls/dangle                                     \
328   ls/dired                                      \
329   ls/file-type                                  \
330   ls/follow-slink                               \
331   ls/hardlink                                   \
332   ls/infloop                                    \
333   ls/inode                                      \
334   ls/m-option                                   \
335   ls/no-arg                                     \
336   ls/no-cap                                     \
337   ls/proc-selinux-segfault                      \
338   ls/recursive                                  \
339   ls/rt-1                                       \
340   ls/stat-dtype                                 \
341   ls/stat-failed                                \
342   ls/stat-free-symlinks                         \
343   ls/stat-vs-dirent                             \
344   ls/symlink-slash                              \
345   ls/x-option                                   \
346   mkdir/p-1                                     \
347   mkdir/p-2                                     \
348   mkdir/p-3                                     \
349   mkdir/p-slashdot                              \
350   mkdir/p-thru-slink                            \
351   mkdir/p-v                                     \
352   mkdir/parents                                 \
353   mkdir/perm                                    \
354   mkdir/selinux                                 \
355   mkdir/special-1                               \
356   mkdir/t-slash                                 \
357   mv/acl                                        \
358   mv/atomic                                     \
359   mv/atomic2                                    \
360   mv/backup-dir                                 \
361   mv/backup-is-src                              \
362   mv/childproof                                 \
363   mv/diag                                       \
364   mv/dir-file                                   \
365   mv/dir2dir                                    \
366   mv/dup-source                                 \
367   mv/force                                      \
368   mv/hard-2                                     \
369   mv/hard-3                                     \
370   mv/hard-4                                     \
371   mv/hard-link-1                                \
372   mv/hard-verbose                               \
373   mv/i-1                                        \
374   mv/i-2                                        \
375   mv/i-3                                        \
376   mv/i-4                                        \
377   mv/i-5                                        \
378   mv/i-link-no                                  \
379   mv/into-self                                  \
380   mv/into-self-2                                \
381   mv/into-self-3                                \
382   mv/into-self-4                                \
383   mv/leak-fd                                    \
384   mv/mv-n                                       \
385   mv/mv-special-1                               \
386   mv/no-target-dir                              \
387   mv/part-fail                                  \
388   mv/part-hardlink                              \
389   mv/part-rename                                \
390   mv/part-symlink                               \
391   mv/partition-perm                             \
392   mv/perm-1                                     \
393   mv/to-symlink                                 \
394   mv/trailing-slash                             \
395   mv/update                                     \
396   readlink/can-e                                \
397   readlink/can-f                                \
398   readlink/can-m                                \
399   readlink/rl-1                                 \
400   rmdir/fail-perm                               \
401   rmdir/ignore                                  \
402   rmdir/t-slash                                 \
403   tail-2/assert-2                               \
404   tail-2/big-4gb                                \
405   tail-2/proc-ksyms                             \
406   tail-2/start-middle                           \
407   touch/dangling-symlink                        \
408   touch/dir-1                                   \
409   touch/fail-diag                               \
410   touch/fifo                                    \
411   touch/no-create-missing                       \
412   touch/no-rights                               \
413   touch/not-owner                               \
414   touch/obsolescent                             \
415   touch/read-only                               \
416   touch/relative                                \
417   $(root_tests)
418
419 pr_data =                                       \
420   pr/0F                                         \
421   pr/0FF                                        \
422   pr/0FFnt                                      \
423   pr/0FFt                                       \
424   pr/0FnFnt                                     \
425   pr/0FnFt                                      \
426   pr/0Fnt                                       \
427   pr/0Ft                                        \
428   pr/2-S_f-t_notab                              \
429   pr/2-Sf-t_notab                               \
430   pr/2f-t_notab                                 \
431   pr/2s_f-t_notab                               \
432   pr/2s_w60f-t_nota                             \
433   pr/2sf-t_notab                                \
434   pr/2sw60f-t_notab                             \
435   pr/2w60f-t_notab                              \
436   pr/3-0F                                       \
437   pr/3-5l24f-t                                  \
438   pr/3-FF                                       \
439   pr/3a2l17-FF                                  \
440   pr/3a3f-0F                                    \
441   pr/3a3l15-t                                   \
442   pr/3a3l15f-t                                  \
443   pr/3b2l17-FF                                  \
444   pr/3b3f-0F                                    \
445   pr/3b3f-0FF                                   \
446   pr/3b3f-FF                                    \
447   pr/3b3l15-t                                   \
448   pr/3b3l15f-t                                  \
449   pr/3f-0F                                      \
450   pr/3f-FF                                      \
451   pr/3l24-t                                     \
452   pr/3l24f-t                                    \
453   pr/3ml24-FF                                   \
454   pr/3ml24-t                                    \
455   pr/3ml24-t-FF                                 \
456   pr/3ml24f-t                                   \
457   pr/4-7l24-FF                                  \
458   pr/4l24-FF                                    \
459   pr/FF                                         \
460   pr/FFn                                        \
461   pr/FFtn                                       \
462   pr/FnFn                                       \
463   pr/Ja3l24f-lm                                 \
464   pr/Jb3l24f-lm                                 \
465   pr/Jml24f-lm-lo                               \
466   pr/W-72l24f-ll                                \
467   pr/W20l24f-ll                                 \
468   pr/W26l24f-ll                                 \
469   pr/W27l24f-ll                                 \
470   pr/W28l24f-ll                                 \
471   pr/W35Ja3l24f-lm                              \
472   pr/W35Jb3l24f-lm                              \
473   pr/W35Jml24f-lmlo                             \
474   pr/W35a3l24f-lm                               \
475   pr/W35b3l24f-lm                               \
476   pr/W35ml24f-lm-lo                             \
477   pr/W72Jl24f-ll                                \
478   pr/a2l15-FF                                   \
479   pr/a2l17-FF                                   \
480   pr/a3-0F                                      \
481   pr/a3f-0F                                     \
482   pr/a3f-0FF                                    \
483   pr/a3f-FF                                     \
484   pr/a3l15-t                                    \
485   pr/a3l15f-t                                   \
486   pr/a3l24f-lm                                  \
487   pr/b2l15-FF                                   \
488   pr/b2l17-FF                                   \
489   pr/b3-0F                                      \
490   pr/b3f-0F                                     \
491   pr/b3f-0FF                                    \
492   pr/b3f-FF                                     \
493   pr/b3l15-t                                    \
494   pr/b3l15f-t                                   \
495   pr/b3l24f-lm                                  \
496   pr/l24-FF                                     \
497   pr/l24-t                                      \
498   pr/l24f-t                                     \
499   pr/loli                                       \
500   pr/ml20-FF-t                                  \
501   pr/ml24-FF                                    \
502   pr/ml24-t                                     \
503   pr/ml24-t-FF                                  \
504   pr/ml24f-0F                                   \
505   pr/ml24f-lm-lo                                \
506   pr/ml24f-t                                    \
507   pr/ml24f-t-0F                                 \
508   pr/n+2-5l24f-0FF                              \
509   pr/n+2l24f-0FF                                \
510   pr/n+2l24f-bl                                 \
511   pr/n+3-7l24-FF                                \
512   pr/n+3l24f-0FF                                \
513   pr/n+3l24f-bl                                 \
514   pr/n+3ml20f-bl-FF                             \
515   pr/n+3ml24f-bl-tn                             \
516   pr/n+3ml24f-tn-bl                             \
517   pr/n+4-8a2l17-FF                              \
518   pr/n+4b2l17f-0FF                              \
519   pr/n+5-8b3l17f-FF                             \
520   pr/n+5a3l13f-0FF                              \
521   pr/n+6a2l17-FF                                \
522   pr/n+6b3l13f-FF                               \
523   pr/n+7l24-FF                                  \
524   pr/n+8l20-FF                                  \
525   pr/nJml24f-lmlmlo                             \
526   pr/nJml24f-lmlolm                             \
527   pr/nN1+3l24f-bl                               \
528   pr/nN15l24f-bl                                \
529   pr/nSml20-bl-FF                               \
530   pr/nSml20-t-t-FF                              \
531   pr/nSml20-t-tFFFF                             \
532   pr/nSml24-bl-FF                               \
533   pr/nSml24-t-t-FF                              \
534   pr/nSml24-t-tFFFF                             \
535   pr/nl24f-bl                                   \
536   pr/o3Jml24f-lm-lo                             \
537   pr/o3a3Sl24f-tn                               \
538   pr/o3a3Snl24f-tn                              \
539   pr/o3a3l24f-tn                                \
540   pr/o3b3Sl24f-tn                               \
541   pr/o3b3Snl24f-tn                              \
542   pr/o3b3l24f-tn                                \
543   pr/o3mSl24f-bl-tn                             \
544   pr/o3mSnl24fbltn                              \
545   pr/o3ml24f-bl-tn                              \
546   pr/t-0FF                                      \
547   pr/t-FF                                       \
548   pr/t-bl                                       \
549   pr/t-t                                        \
550   pr/tFFn                                       \
551   pr/tFFt                                       \
552   pr/tFFt-bl                                    \
553   pr/tFFt-ll                                    \
554   pr/tFFt-lm                                    \
555   pr/tFnFt                                      \
556   pr/t_notab                                    \
557   pr/t_tab                                      \
558   pr/t_tab_                                     \
559   pr/ta3-0FF                                    \
560   pr/ta3-FF                                     \
561   pr/tb3-0FF                                    \
562   pr/tb3-FF                                     \
563   pr/tn                                         \
564   pr/tn2e5o3-t_tab                              \
565   pr/tn2e8-t_tab                                \
566   pr/tn2e8o3-t_tab                              \
567   pr/tn_2e8-t_tab                               \
568   pr/tn_2e8S-t_tab                              \
569   pr/tne8-t_tab                                 \
570   pr/tne8o3-t_tab                               \
571   pr/tt-0FF                                     \
572   pr/tt-FF                                      \
573   pr/tt-bl                                      \
574   pr/tt-t                                       \
575   pr/tta3-0FF                                   \
576   pr/tta3-FF                                    \
577   pr/ttb3-0FF                                   \
578   pr/ttb3-FF                                    \
579   pr/w72l24f-ll
580
581 AUTOMAKE_OPTIONS =
582 include $(srcdir)/check.mk