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