maint: update all copyright year number ranges
[platform/upstream/coreutils.git] / tests / local.mk
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-.
2
3 ## Copyright (C) 2007-2013 Free Software Foundation, Inc.
4
5 ## This program is free software: you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, either version 3 of the License, or
8 ## (at your option) any later version.
9
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 # Indirections required so that we'll still be able to know the
19 # complete list of our tests even if the user overrides TESTS
20 # from the command line (as permitted by the test harness API).
21 TESTS = $(all_tests) $(factor_tests)
22 root_tests = $(all_root_tests)
23
24 EXTRA_DIST += $(all_tests)
25
26 TEST_EXTENSIONS = .sh .pl .xpl
27
28 if HAVE_PERL
29 TESTSUITE_PERL = $(PERL)
30 else
31 TESTSUITE_PERL = $(SHELL) $(srcdir)/no-perl
32 endif
33
34 # Options passed to the perl invocations running the perl test scripts.
35 TESTSUITE_PERL_OPTIONS = -w -I$(srcdir)/tests -MCoreutils -MCuSkip
36 # '$f' is set by the Automake-generated test harness to the path of the
37 # current test script stripped of VPATH components, and is used by the
38 # CuTmpdir module to determine the name of the temporary files to be
39 # used.  Note that $f is a shell variable, not a make macro, so the use
40 # of '$$f' below is correct, and not a typo.
41 TESTSUITE_PERL_OPTIONS += -M"CuTmpdir qw($$f)"
42
43 SH_LOG_COMPILER = $(SHELL)
44 PL_LOG_COMPILER = $(TESTSUITE_PERL) $(TESTSUITE_PERL_OPTIONS)
45 # Perl scripts that must be run in tainted mode.
46 XPL_LOG_COMPILER = $(TESTSUITE_PERL) -T $(TESTSUITE_PERL_OPTIONS)
47
48 # We don't want this to go in the top-level directory.
49 TEST_SUITE_LOG = tests/test-suite.log
50
51 # Note that the first lines are statements.  They ensure that environment
52 # variables that can perturb tests are unset or set to expected values.
53 # The rest are envvar settings that propagate build-related Makefile
54 # variables to test scripts.
55 TESTS_ENVIRONMENT =                             \
56   . $(srcdir)/tests/lang-default;               \
57   tmp__=$${TMPDIR-/tmp};                        \
58   test -d "$$tmp__" && test -w "$$tmp__" || tmp__=.;    \
59   . $(srcdir)/tests/envvar-check;               \
60   TMPDIR=$$tmp__; export TMPDIR;                \
61   export                                        \
62   VERSION='$(VERSION)'                          \
63   LOCALE_FR='$(LOCALE_FR)'                      \
64   LOCALE_FR_UTF8='$(LOCALE_FR_UTF8)'            \
65   abs_top_builddir='$(abs_top_builddir)'        \
66   abs_top_srcdir='$(abs_top_srcdir)'            \
67   abs_srcdir='$(abs_srcdir)'                    \
68   built_programs='$(built_programs)'            \
69   host_os=$(host_os)                            \
70   host_triplet='$(host_triplet)'                \
71   srcdir='$(srcdir)'                            \
72   top_srcdir='$(top_srcdir)'                    \
73   CONFIG_HEADER='$(abs_top_builddir)/$(CONFIG_INCLUDE)' \
74   CU_TEST_NAME=`basename '$(abs_srcdir)'`,`echo $$tst|sed 's,^\./,,;s,/,-,g'` \
75   CC='$(CC)'                                    \
76   AWK='$(AWK)'                                  \
77   EGREP='$(EGREP)'                              \
78   EXEEXT='$(EXEEXT)'                            \
79   MAKE=$(MAKE)                                  \
80   PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)'      \
81   PACKAGE_VERSION=$(PACKAGE_VERSION)            \
82   PERL='$(PERL)'                                \
83   PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
84   ; test -d /usr/xpg4/bin && PATH='/usr/xpg4/bin$(PATH_SEPARATOR)'"$$PATH"; \
85   PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
86   ; 9>&2
87
88 # On failure, display the global testsuite log on stdout.
89 VERBOSE = yes
90
91 EXTRA_DIST +=                   \
92   init.cfg                      \
93   tests/Coreutils.pm            \
94   tests/CuSkip.pm               \
95   tests/CuTmpdir.pm             \
96   tests/d_type-check            \
97   tests/envvar-check            \
98   tests/factor/run.sh           \
99   tests/factor/create-test.sh   \
100   tests/filefrag-extent-compare \
101   tests/fiemap-capable          \
102   tests/init.sh                 \
103   tests/lang-default            \
104   tests/no-perl                 \
105   tests/other-fs-tmpdir         \
106   tests/sample-test             \
107   $(pr_data)
108
109 all_root_tests =                                \
110   tests/chown/basic.sh                          \
111   tests/cp/cp-a-selinux.sh                      \
112   tests/cp/preserve-gid.sh                      \
113   tests/cp/special-bits.sh                      \
114   tests/cp/cp-mv-enotsup-xattr.sh               \
115   tests/cp/capability.sh                        \
116   tests/cp/sparse-fiemap.sh                     \
117   tests/dd/skip-seek-past-dev.sh                \
118   tests/df/problematic-chars.sh                 \
119   tests/du/bind-mount-dir-cycle.sh              \
120   tests/install/install-C-root.sh               \
121   tests/ls/capability.sh                        \
122   tests/ls/nameless-uid.sh                      \
123   tests/misc/chcon.sh                           \
124   tests/misc/chroot-credentials.sh              \
125   tests/misc/id-setgid.sh                       \
126   tests/misc/selinux.sh                         \
127   tests/misc/truncate-owned-by-other.sh         \
128   tests/mkdir/writable-under-readonly.sh        \
129   tests/mv/sticky-to-xpart.sh                   \
130   tests/rm/fail-2eperm.sh                       \
131   tests/rm/no-give-up.sh                        \
132   tests/rm/one-file-system.sh                   \
133   tests/rm/read-only.sh                         \
134   tests/tail-2/append-only.sh                   \
135   tests/touch/now-owned-by-other.sh
136
137 ALL_RECURSIVE_TARGETS += check-root
138 .PHONY: check-root
139 check-root:
140         $(MAKE) check TESTS='$(root_tests)'
141
142 # Do not choose a name that is a shell keyword like 'if', or a
143 # commonly-used utility like 'cat' or 'test', as the name of a test.
144 # Otherwise, VPATH builds will fail on hosts like Solaris, since they
145 # will expand 'if test ...' to 'if .../test ...', and the '.../test'
146 # will execute the test script rather than the standard utility.
147
148 # Notes on the ordering of these tests:
149 # Place early in the list tests of the tools that
150 # are most commonly used in test scripts themselves.
151 # E.g., nearly every test script uses rm and chmod.
152 # help-version comes early because it's a basic sanity test.
153 # Put seq early, since lots of other tests use it.
154 # Put tests that sleep early, but not all together, so in parallel builds
155 # they share time with tests that burn CPU, not with others that sleep.
156 # Put head-elide-tail early, because it's long-running.
157
158 all_tests =                                     \
159   tests/misc/help-version.sh                    \
160   tests/tail-2/inotify-race.sh                  \
161   tests/misc/invalid-opt.pl                     \
162   tests/rm/ext3-perf.sh                         \
163   tests/rm/cycle.sh                             \
164   tests/cp/link-heap.sh                         \
165   tests/misc/tty-eof.pl                         \
166   tests/tail-2/inotify-hash-abuse.sh            \
167   tests/tail-2/inotify-hash-abuse2.sh           \
168   tests/tail-2/F-vs-missing.sh                  \
169   tests/tail-2/F-vs-rename.sh                   \
170   tests/tail-2/inotify-rotate.sh                \
171   tests/chmod/no-x.sh                           \
172   tests/chgrp/basic.sh                          \
173   tests/rm/dangling-symlink.sh                  \
174   tests/misc/ls-time.sh                         \
175   tests/rm/d-1.sh                               \
176   tests/rm/d-2.sh                               \
177   tests/rm/d-3.sh                               \
178   tests/rm/deep-1.sh                            \
179   tests/rm/deep-2.sh                            \
180   tests/rm/dir-no-w.sh                          \
181   tests/rm/dir-nonrecur.sh                      \
182   tests/rm/dot-rel.sh                           \
183   tests/rm/isatty.sh                            \
184   tests/rm/empty-inacc.sh                       \
185   tests/rm/empty-name.pl                        \
186   tests/rm/f-1.sh                               \
187   tests/rm/fail-eacces.sh                       \
188   tests/rm/fail-eperm.xpl                       \
189   tests/tail-2/assert.sh                        \
190   tests/rm/hash.sh                              \
191   tests/rm/i-1.sh                               \
192   tests/rm/i-never.sh                           \
193   tests/rm/i-no-r.sh                            \
194   tests/tail-2/infloop-1.sh                     \
195   tests/rm/ignorable.sh                         \
196   tests/rm/inaccessible.sh                      \
197   tests/rm/interactive-always.sh                \
198   tests/rm/interactive-once.sh                  \
199   tests/rm/ir-1.sh                              \
200   tests/rm/one-file-system2.sh                  \
201   tests/rm/r-1.sh                               \
202   tests/rm/r-2.sh                               \
203   tests/rm/r-3.sh                               \
204   tests/rm/r-4.sh                               \
205   tests/rm/readdir-bug.sh                       \
206   tests/rm/rm1.sh                               \
207   tests/touch/empty-file.sh                     \
208   tests/rm/rm2.sh                               \
209   tests/rm/rm3.sh                               \
210   tests/rm/rm4.sh                               \
211   tests/rm/rm5.sh                               \
212   tests/rm/sunos-1.sh                           \
213   tests/rm/unread2.sh                           \
214   tests/rm/unread3.sh                           \
215   tests/rm/unreadable.pl                        \
216   tests/rm/v-slash.sh                           \
217   tests/rm/many-dir-entries-vs-OOM.sh           \
218   tests/chgrp/default-no-deref.sh               \
219   tests/chgrp/deref.sh                          \
220   tests/chgrp/no-x.sh                           \
221   tests/chgrp/posix-H.sh                        \
222   tests/chgrp/recurse.sh                        \
223   tests/fmt/base.pl                             \
224   tests/fmt/long-line.sh                        \
225   tests/fmt/goal-option.sh                      \
226   tests/misc/env.sh                             \
227   tests/misc/ptx.pl                             \
228   tests/misc/test.pl                            \
229   tests/misc/seq.pl                             \
230   tests/misc/seq-long-double.sh                 \
231   tests/misc/head.pl                            \
232   tests/misc/head-elide-tail.pl                 \
233   tests/tail-2/tail-n0f.sh                      \
234   tests/misc/ls-misc.pl                         \
235   tests/misc/date.pl                            \
236   tests/misc/date-next-dow.pl                   \
237   tests/misc/ptx-overrun.sh                     \
238   tests/misc/xstrtol.pl                         \
239   tests/tail-2/pid.sh                           \
240   tests/misc/od.pl                              \
241   tests/misc/od-float.sh                        \
242   tests/misc/mktemp.pl                          \
243   tests/misc/arch.sh                            \
244   tests/misc/join.pl                            \
245   tests/pr/pr-tests.pl                          \
246   tests/misc/pwd-option.sh                      \
247   tests/misc/chcon-fail.sh                      \
248   tests/misc/cut.pl                             \
249   tests/misc/cut-huge-to-eol-range.sh           \
250   tests/misc/wc.pl                              \
251   tests/misc/wc-files0-from.pl                  \
252   tests/misc/wc-files0.sh                       \
253   tests/misc/wc-parallel.sh                     \
254   tests/misc/cat-proc.sh                        \
255   tests/misc/cat-buf.sh                         \
256   tests/misc/base64.pl                          \
257   tests/misc/basename.pl                        \
258   tests/misc/close-stdout.sh                    \
259   tests/misc/chroot-fail.sh                     \
260   tests/misc/comm.pl                            \
261   tests/misc/csplit.sh                          \
262   tests/misc/csplit-1000.sh                     \
263   tests/misc/csplit-heap.sh                     \
264   tests/misc/date-sec.sh                        \
265   tests/misc/dircolors.pl                       \
266   tests/misc/dirname.pl                         \
267   tests/misc/env-null.sh                        \
268   tests/misc/expand.pl                          \
269   tests/misc/expr.pl                            \
270   tests/misc/factor.pl                          \
271   tests/misc/false-status.sh                    \
272   tests/misc/fold.pl                            \
273   tests/misc/groups-dash.sh                     \
274   tests/misc/groups-version.sh                  \
275   tests/misc/head-c.sh                          \
276   tests/misc/head-pos.sh                        \
277   tests/misc/id-context.sh                      \
278   tests/misc/id-groups.sh                       \
279   tests/misc/id-setgid.sh                       \
280   tests/misc/md5sum.pl                          \
281   tests/misc/md5sum-bsd.sh                      \
282   tests/misc/md5sum-newline.pl                  \
283   tests/misc/md5sum-parallel.sh                 \
284   tests/misc/mknod.sh                           \
285   tests/misc/nice.sh                            \
286   tests/misc/nice-fail.sh                       \
287   tests/misc/nl.sh                              \
288   tests/misc/nohup.sh                           \
289   tests/misc/nproc-avail.sh                     \
290   tests/misc/nproc-positive.sh                  \
291   tests/misc/od-N.sh                            \
292   tests/misc/od-multiple-t.sh                   \
293   tests/misc/od-x8.sh                           \
294   tests/misc/paste.pl                           \
295   tests/misc/pathchk1.sh                        \
296   tests/misc/printenv.sh                        \
297   tests/misc/printf.sh                          \
298   tests/misc/printf-cov.pl                      \
299   tests/misc/printf-hex.sh                      \
300   tests/misc/printf-surprise.sh                 \
301   tests/misc/pwd-long.sh                        \
302   tests/misc/readlink-fp-loop.sh                \
303   tests/misc/readlink-root.sh                   \
304   tests/misc/realpath.sh                        \
305   tests/misc/runcon-no-reorder.sh               \
306   tests/misc/sha1sum.pl                         \
307   tests/misc/sha1sum-vec.pl                     \
308   tests/misc/sha224sum.pl                       \
309   tests/misc/sha256sum.pl                       \
310   tests/misc/sha384sum.pl                       \
311   tests/misc/sha512sum.pl                       \
312   tests/misc/shred-exact.sh                     \
313   tests/misc/shred-passes.sh                    \
314   tests/misc/shred-remove.sh                    \
315   tests/misc/shuf.sh                            \
316   tests/misc/sort.pl                            \
317   tests/misc/sort-benchmark-random.sh           \
318   tests/misc/sort-compress.sh                   \
319   tests/misc/sort-compress-hang.sh              \
320   tests/misc/sort-compress-proc.sh              \
321   tests/misc/sort-continue.sh                   \
322   tests/misc/sort-debug-keys.sh                 \
323   tests/misc/sort-debug-warn.sh                 \
324   tests/misc/sort-discrim.sh                    \
325   tests/misc/sort-files0-from.pl                \
326   tests/misc/sort-float.sh                      \
327   tests/misc/sort-merge.pl                      \
328   tests/misc/sort-merge-fdlimit.sh              \
329   tests/misc/sort-month.sh                      \
330   tests/misc/sort-exit-early.sh                 \
331   tests/misc/sort-rand.sh                       \
332   tests/misc/sort-spinlock-abuse.sh             \
333   tests/misc/sort-stale-thread-mem.sh           \
334   tests/misc/sort-unique.sh                     \
335   tests/misc/sort-unique-segv.sh                \
336   tests/misc/sort-version.sh                    \
337   tests/misc/sort-NaN-infloop.sh                \
338   tests/misc/sort-u-FMR.sh                      \
339   tests/split/filter.sh                         \
340   tests/split/suffix-auto-length.sh             \
341   tests/split/suffix-length.sh                  \
342   tests/split/additional-suffix.sh              \
343   tests/split/b-chunk.sh                        \
344   tests/split/fail.sh                           \
345   tests/split/lines.sh                          \
346   tests/split/l-chunk.sh                        \
347   tests/split/r-chunk.sh                        \
348   tests/split/numeric.sh                        \
349   tests/split/guard-input.sh                    \
350   tests/misc/stat-birthtime.sh                  \
351   tests/misc/stat-fmt.sh                        \
352   tests/misc/stat-hyphen.sh                     \
353   tests/misc/stat-mount.sh                      \
354   tests/misc/stat-nanoseconds.sh                \
355   tests/misc/stat-printf.pl                     \
356   tests/misc/stat-slash.sh                      \
357   tests/misc/stdbuf.sh                          \
358   tests/misc/stty.sh                            \
359   tests/misc/stty-invalid.sh                    \
360   tests/misc/stty-pairs.sh                      \
361   tests/misc/stty-row-col.sh                    \
362   tests/misc/sum.pl                             \
363   tests/misc/sum-sysv.sh                        \
364   tests/misc/tac.pl                             \
365   tests/misc/tac-continue.sh                    \
366   tests/misc/tac-2-nonseekable.sh               \
367   tests/misc/tail.pl                            \
368   tests/misc/tee.sh                             \
369   tests/misc/tee-dash.sh                        \
370   tests/misc/test-diag.pl                       \
371   tests/misc/timeout.sh                         \
372   tests/misc/timeout-group.sh                   \
373   tests/misc/timeout-parameters.sh              \
374   tests/misc/tr.pl                              \
375   tests/misc/tr-case-class.sh                   \
376   tests/misc/truncate-dangling-symlink.sh       \
377   tests/misc/truncate-dir-fail.sh               \
378   tests/misc/truncate-fail-diag.sh              \
379   tests/misc/truncate-fifo.sh                   \
380   tests/misc/truncate-no-create-missing.sh      \
381   tests/misc/truncate-overflow.sh               \
382   tests/misc/truncate-parameters.sh             \
383   tests/misc/truncate-relative.sh               \
384   tests/misc/tsort.pl                           \
385   tests/misc/unexpand.pl                        \
386   tests/misc/uniq.pl                            \
387   tests/misc/uniq-perf.sh                       \
388   tests/misc/xattr.sh                           \
389   tests/tail-2/wait.sh                          \
390   tests/chmod/c-option.sh                       \
391   tests/chmod/equal-x.sh                        \
392   tests/chmod/equals.sh                         \
393   tests/chmod/inaccessible.sh                   \
394   tests/chmod/octal.sh                          \
395   tests/chmod/setgid.sh                         \
396   tests/chmod/silent.sh                         \
397   tests/chmod/thru-dangling.sh                  \
398   tests/chmod/umask-x.sh                        \
399   tests/chmod/usage.sh                          \
400   tests/chown/deref.sh                          \
401   tests/chown/preserve-root.sh                  \
402   tests/chown/separator.sh                      \
403   tests/cp/abuse.sh                             \
404   tests/cp/acl.sh                               \
405   tests/cp/attr-existing.sh                     \
406   tests/cp/backup-1.sh                          \
407   tests/cp/backup-dir.sh                        \
408   tests/cp/backup-is-src.sh                     \
409   tests/cp/cp-HL.sh                             \
410   tests/cp/cp-deref.sh                          \
411   tests/cp/cp-i.sh                              \
412   tests/cp/cp-mv-backup.sh                      \
413   tests/cp/cp-parents.sh                        \
414   tests/cp/deref-slink.sh                       \
415   tests/cp/dir-rm-dest.sh                       \
416   tests/cp/dir-slash.sh                         \
417   tests/cp/dir-vs-file.sh                       \
418   tests/cp/existing-perm-dir.sh                 \
419   tests/cp/existing-perm-race.sh                \
420   tests/cp/fail-perm.sh                         \
421   tests/cp/fiemap-empty.sh                      \
422   tests/cp/fiemap-FMR.sh                        \
423   tests/cp/fiemap-perf.sh                       \
424   tests/cp/fiemap-2.sh                          \
425   tests/cp/file-perm-race.sh                    \
426   tests/cp/into-self.sh                         \
427   tests/cp/link.sh                              \
428   tests/cp/link-no-deref.sh                     \
429   tests/cp/link-preserve.sh                     \
430   tests/cp/link-symlink.sh                      \
431   tests/cp/nfs-removal-race.sh                  \
432   tests/cp/no-deref-link1.sh                    \
433   tests/cp/no-deref-link2.sh                    \
434   tests/cp/no-deref-link3.sh                    \
435   tests/cp/parent-perm.sh                       \
436   tests/cp/parent-perm-race.sh                  \
437   tests/cp/perm.sh                              \
438   tests/cp/preserve-2.sh                        \
439   tests/cp/preserve-link.sh                     \
440   tests/cp/preserve-mode.sh                     \
441   tests/cp/preserve-slink-time.sh               \
442   tests/cp/proc-short-read.sh                   \
443   tests/cp/proc-zero-len.sh                     \
444   tests/cp/r-vs-symlink.sh                      \
445   tests/cp/reflink-auto.sh                      \
446   tests/cp/reflink-perm.sh                      \
447   tests/cp/same-file.sh                         \
448   tests/cp/slink-2-slink.sh                     \
449   tests/cp/sparse.sh                            \
450   tests/cp/sparse-to-pipe.sh                    \
451   tests/cp/special-f.sh                         \
452   tests/cp/src-base-dot.sh                      \
453   tests/cp/symlink-slash.sh                     \
454   tests/cp/thru-dangling.sh                     \
455   tests/df/header.sh                            \
456   tests/df/df-P.sh                              \
457   tests/df/df-output.sh                         \
458   tests/df/unreadable.sh                        \
459   tests/df/total-unprocessed.sh                 \
460   tests/df/no-mtab-status.sh                    \
461   tests/df/skip-duplicates.sh                   \
462   tests/df/skip-rootfs.sh                       \
463   tests/dd/direct.sh                            \
464   tests/dd/misc.sh                              \
465   tests/dd/nocache.sh                           \
466   tests/dd/not-rewound.sh                       \
467   tests/dd/reblock.sh                           \
468   tests/dd/skip-seek.pl                         \
469   tests/dd/skip-seek2.sh                        \
470   tests/dd/bytes.sh                             \
471   tests/dd/skip-seek-past-file.sh               \
472   tests/dd/sparse.sh                            \
473   tests/dd/stderr.sh                            \
474   tests/dd/unblock.pl                           \
475   tests/dd/unblock-sync.sh                      \
476   tests/df/total-verify.sh                      \
477   tests/du/2g.sh                                \
478   tests/du/8gb.sh                               \
479   tests/du/basic.sh                             \
480   tests/du/bigtime.sh                           \
481   tests/du/deref.sh                             \
482   tests/du/deref-args.sh                        \
483   tests/du/exclude.sh                           \
484   tests/du/fd-leak.sh                           \
485   tests/du/files0-from.pl                       \
486   tests/du/files0-from-dir.sh                   \
487   tests/du/hard-link.sh                         \
488   tests/du/inacc-dest.sh                        \
489   tests/du/inacc-dir.sh                         \
490   tests/du/inaccessible-cwd.sh                  \
491   tests/du/long-from-unreadable.sh              \
492   tests/du/long-sloop.sh                        \
493   tests/du/max-depth.sh                         \
494   tests/du/move-dir-while-traversing.sh         \
495   tests/du/no-deref.sh                          \
496   tests/du/no-x.sh                              \
497   tests/du/one-file-system.sh                   \
498   tests/du/restore-wd.sh                        \
499   tests/du/slash.sh                             \
500   tests/du/slink.sh                             \
501   tests/du/trailing-slash.sh                    \
502   tests/du/two-args.sh                          \
503   tests/id/gnu-zero-uids.sh                     \
504   tests/id/no-context.sh                        \
505   tests/install/basic-1.sh                      \
506   tests/install/create-leading.sh               \
507   tests/install/d-slashdot.sh                   \
508   tests/install/install-C.sh                    \
509   tests/install/install-C-selinux.sh            \
510   tests/install/strip-program.sh                \
511   tests/install/trap.sh                         \
512   tests/ln/backup-1.sh                          \
513   tests/ln/hard-backup.sh                       \
514   tests/ln/hard-to-sym.sh                       \
515   tests/ln/misc.sh                              \
516   tests/ln/relative.sh                          \
517   tests/ln/sf-1.sh                              \
518   tests/ln/slash-decorated-nonexistent-dest.sh  \
519   tests/ln/target-1.sh                          \
520   tests/ls/abmon-align.sh                       \
521   tests/ls/block-size.sh                        \
522   tests/ls/color-clear-to-eol.sh                \
523   tests/ls/color-dtype-dir.sh                   \
524   tests/ls/color-norm.sh                        \
525   tests/ls/dangle.sh                            \
526   tests/ls/dired.sh                             \
527   tests/ls/file-type.sh                         \
528   tests/ls/follow-slink.sh                      \
529   tests/ls/getxattr-speedup.sh                  \
530   tests/ls/infloop.sh                           \
531   tests/ls/inode.sh                             \
532   tests/ls/m-option.sh                          \
533   tests/ls/multihardlink.sh                     \
534   tests/ls/no-arg.sh                            \
535   tests/ls/no-cap.sh                            \
536   tests/ls/proc-selinux-segfault.sh             \
537   tests/ls/readdir-mountpoint-inode.sh          \
538   tests/ls/recursive.sh                         \
539   tests/ls/root-rel-symlink-color.sh            \
540   tests/ls/rt-1.sh                              \
541   tests/ls/slink-acl.sh                         \
542   tests/ls/stat-dtype.sh                        \
543   tests/ls/stat-failed.sh                       \
544   tests/ls/stat-free-color.sh                   \
545   tests/ls/stat-free-symlinks.sh                \
546   tests/ls/stat-vs-dirent.sh                    \
547   tests/ls/symlink-slash.sh                     \
548   tests/ls/time-style-diag.sh                   \
549   tests/ls/x-option.sh                          \
550   tests/mkdir/p-1.sh                            \
551   tests/mkdir/p-2.sh                            \
552   tests/mkdir/p-3.sh                            \
553   tests/mkdir/p-slashdot.sh                     \
554   tests/mkdir/p-thru-slink.sh                   \
555   tests/mkdir/p-v.sh                            \
556   tests/mkdir/parents.sh                        \
557   tests/mkdir/perm.sh                           \
558   tests/mkdir/selinux.sh                        \
559   tests/mkdir/special-1.sh                      \
560   tests/mkdir/t-slash.sh                        \
561   tests/mv/acl.sh                               \
562   tests/mv/atomic.sh                            \
563   tests/mv/atomic2.sh                           \
564   tests/mv/backup-dir.sh                        \
565   tests/mv/backup-is-src.sh                     \
566   tests/mv/childproof.sh                        \
567   tests/mv/diag.sh                              \
568   tests/mv/dir-file.sh                          \
569   tests/mv/dir2dir.sh                           \
570   tests/mv/dup-source.sh                        \
571   tests/mv/force.sh                             \
572   tests/mv/hard-2.sh                            \
573   tests/mv/hard-3.sh                            \
574   tests/mv/hard-4.sh                            \
575   tests/mv/hard-link-1.sh                       \
576   tests/mv/hard-verbose.sh                      \
577   tests/mv/i-1.pl                               \
578   tests/mv/i-2.sh                               \
579   tests/mv/i-3.sh                               \
580   tests/mv/i-4.sh                               \
581   tests/mv/i-5.sh                               \
582   tests/mv/i-link-no.sh                         \
583   tests/mv/into-self.sh                         \
584   tests/mv/into-self-2.sh                       \
585   tests/mv/into-self-3.sh                       \
586   tests/mv/into-self-4.sh                       \
587   tests/mv/leak-fd.sh                           \
588   tests/mv/mv-n.sh                              \
589   tests/mv/mv-special-1.sh                      \
590   tests/mv/no-target-dir.sh                     \
591   tests/mv/part-fail.sh                         \
592   tests/mv/part-hardlink.sh                     \
593   tests/mv/part-rename.sh                       \
594   tests/mv/part-symlink.sh                      \
595   tests/mv/partition-perm.sh                    \
596   tests/mv/perm-1.sh                            \
597   tests/mv/symlink-onto-hardlink.sh             \
598   tests/mv/symlink-onto-hardlink-to-self.sh     \
599   tests/mv/to-symlink.sh                        \
600   tests/mv/trailing-slash.sh                    \
601   tests/mv/update.sh                            \
602   tests/readlink/can-e.sh                       \
603   tests/readlink/can-f.sh                       \
604   tests/readlink/can-m.sh                       \
605   tests/readlink/multi.sh                       \
606   tests/readlink/rl-1.sh                        \
607   tests/rmdir/fail-perm.sh                      \
608   tests/rmdir/ignore.sh                         \
609   tests/rmdir/t-slash.sh                        \
610   tests/tail-2/assert-2.sh                      \
611   tests/tail-2/big-4gb.sh                       \
612   tests/tail-2/flush-initial.sh                 \
613   tests/tail-2/follow-name.sh                   \
614   tests/tail-2/follow-stdin.sh                  \
615   tests/tail-2/pipe-f.sh                        \
616   tests/tail-2/pipe-f2.sh                       \
617   tests/tail-2/proc-ksyms.sh                    \
618   tests/tail-2/start-middle.sh                  \
619   tests/touch/60-seconds.sh                     \
620   tests/touch/dangling-symlink.sh               \
621   tests/touch/dir-1.sh                          \
622   tests/touch/fail-diag.sh                      \
623   tests/touch/fifo.sh                           \
624   tests/touch/no-create-missing.sh              \
625   tests/touch/no-dereference.sh                 \
626   tests/touch/no-rights.sh                      \
627   tests/touch/not-owner.sh                      \
628   tests/touch/obsolescent.sh                    \
629   tests/touch/read-only.sh                      \
630   tests/touch/relative.sh                       \
631   tests/touch/trailing-slash.sh                 \
632   $(all_root_tests)
633
634 # See tests/factor/create-test.sh.
635 tf = tests/factor
636 factor_tests = \
637   $(tf)/t00.sh $(tf)/t01.sh $(tf)/t02.sh $(tf)/t03.sh $(tf)/t04.sh \
638   $(tf)/t05.sh $(tf)/t06.sh $(tf)/t07.sh $(tf)/t08.sh $(tf)/t09.sh \
639   $(tf)/t10.sh $(tf)/t11.sh $(tf)/t12.sh $(tf)/t13.sh $(tf)/t14.sh \
640   $(tf)/t15.sh $(tf)/t16.sh $(tf)/t17.sh $(tf)/t18.sh $(tf)/t19.sh \
641   $(tf)/t20.sh $(tf)/t21.sh $(tf)/t22.sh $(tf)/t23.sh $(tf)/t24.sh \
642   $(tf)/t25.sh $(tf)/t26.sh $(tf)/t27.sh $(tf)/t28.sh $(tf)/t29.sh \
643   $(tf)/t30.sh $(tf)/t31.sh $(tf)/t32.sh $(tf)/t33.sh $(tf)/t34.sh \
644   $(tf)/t35.sh $(tf)/t36.sh
645
646 $(factor_tests): $(tf)/run.sh $(tf)/create-test.sh
647         $(AM_V_GEN)$(MKDIR_P) $(tf)
648         $(AM_V_at)$(SHELL) $(srcdir)/$(tf)/create-test.sh $@ \
649           $(srcdir)/$(tf)/run.sh > $@-t
650         $(AM_V_at)chmod a+x $@-t
651         $(AM_V_at)mv $@-t $@
652
653 CLEANFILES += $(factor_tests)
654
655 pr_data =                                       \
656   tests/pr/0F                                   \
657   tests/pr/0FF                                  \
658   tests/pr/0FFnt                                \
659   tests/pr/0FFt                                 \
660   tests/pr/0FnFnt                               \
661   tests/pr/0FnFt                                \
662   tests/pr/0Fnt                                 \
663   tests/pr/0Ft                                  \
664   tests/pr/2-S_f-t_notab                        \
665   tests/pr/2-Sf-t_notab                         \
666   tests/pr/2f-t_notab                           \
667   tests/pr/2s_f-t_notab                         \
668   tests/pr/2s_w60f-t_nota                       \
669   tests/pr/2sf-t_notab                          \
670   tests/pr/2sw60f-t_notab                       \
671   tests/pr/2w60f-t_notab                        \
672   tests/pr/3-0F                                 \
673   tests/pr/3-5l24f-t                            \
674   tests/pr/3-FF                                 \
675   tests/pr/3a2l17-FF                            \
676   tests/pr/3a3f-0F                              \
677   tests/pr/3a3l15-t                             \
678   tests/pr/3a3l15f-t                            \
679   tests/pr/3b2l17-FF                            \
680   tests/pr/3b3f-0F                              \
681   tests/pr/3b3f-0FF                             \
682   tests/pr/3b3f-FF                              \
683   tests/pr/3b3l15-t                             \
684   tests/pr/3b3l15f-t                            \
685   tests/pr/3f-0F                                \
686   tests/pr/3f-FF                                \
687   tests/pr/3l24-t                               \
688   tests/pr/3l24f-t                              \
689   tests/pr/3ml24-FF                             \
690   tests/pr/3ml24-t                              \
691   tests/pr/3ml24-t-FF                           \
692   tests/pr/3ml24f-t                             \
693   tests/pr/4-7l24-FF                            \
694   tests/pr/4l24-FF                              \
695   tests/pr/FF                                   \
696   tests/pr/FFn                                  \
697   tests/pr/FFtn                                 \
698   tests/pr/FnFn                                 \
699   tests/pr/Ja3l24f-lm                           \
700   tests/pr/Jb3l24f-lm                           \
701   tests/pr/Jml24f-lm-lo                         \
702   tests/pr/W-72l24f-ll                          \
703   tests/pr/W20l24f-ll                           \
704   tests/pr/W26l24f-ll                           \
705   tests/pr/W27l24f-ll                           \
706   tests/pr/W28l24f-ll                           \
707   tests/pr/W35Ja3l24f-lm                        \
708   tests/pr/W35Jb3l24f-lm                        \
709   tests/pr/W35Jml24f-lmlo                       \
710   tests/pr/W35a3l24f-lm                         \
711   tests/pr/W35b3l24f-lm                         \
712   tests/pr/W35ml24f-lm-lo                       \
713   tests/pr/W72Jl24f-ll                          \
714   tests/pr/a2l15-FF                             \
715   tests/pr/a2l17-FF                             \
716   tests/pr/a3-0F                                \
717   tests/pr/a3f-0F                               \
718   tests/pr/a3f-0FF                              \
719   tests/pr/a3f-FF                               \
720   tests/pr/a3l15-t                              \
721   tests/pr/a3l15f-t                             \
722   tests/pr/a3l24f-lm                            \
723   tests/pr/b2l15-FF                             \
724   tests/pr/b2l17-FF                             \
725   tests/pr/b3-0F                                \
726   tests/pr/b3f-0F                               \
727   tests/pr/b3f-0FF                              \
728   tests/pr/b3f-FF                               \
729   tests/pr/b3l15-t                              \
730   tests/pr/b3l15f-t                             \
731   tests/pr/b3l24f-lm                            \
732   tests/pr/l24-FF                               \
733   tests/pr/l24-t                                \
734   tests/pr/l24f-t                               \
735   tests/pr/loli                                 \
736   tests/pr/ml20-FF-t                            \
737   tests/pr/ml24-FF                              \
738   tests/pr/ml24-t                               \
739   tests/pr/ml24-t-FF                            \
740   tests/pr/ml24f-0F                             \
741   tests/pr/ml24f-lm-lo                          \
742   tests/pr/ml24f-t                              \
743   tests/pr/ml24f-t-0F                           \
744   tests/pr/n+2-5l24f-0FF                        \
745   tests/pr/n+2l24f-0FF                          \
746   tests/pr/n+2l24f-bl                           \
747   tests/pr/n+3-7l24-FF                          \
748   tests/pr/n+3l24f-0FF                          \
749   tests/pr/n+3l24f-bl                           \
750   tests/pr/n+3ml20f-bl-FF                       \
751   tests/pr/n+3ml24f-bl-tn                       \
752   tests/pr/n+3ml24f-tn-bl                       \
753   tests/pr/n+4-8a2l17-FF                        \
754   tests/pr/n+4b2l17f-0FF                        \
755   tests/pr/n+5-8b3l17f-FF                       \
756   tests/pr/n+5a3l13f-0FF                        \
757   tests/pr/n+6a2l17-FF                          \
758   tests/pr/n+6b3l13f-FF                         \
759   tests/pr/n+7l24-FF                            \
760   tests/pr/n+8l20-FF                            \
761   tests/pr/nJml24f-lmlmlo                       \
762   tests/pr/nJml24f-lmlolm                       \
763   tests/pr/nN1+3l24f-bl                         \
764   tests/pr/nN15l24f-bl                          \
765   tests/pr/nSml20-bl-FF                         \
766   tests/pr/nSml20-t-t-FF                        \
767   tests/pr/nSml20-t-tFFFF                       \
768   tests/pr/nSml24-bl-FF                         \
769   tests/pr/nSml24-t-t-FF                        \
770   tests/pr/nSml24-t-tFFFF                       \
771   tests/pr/nl24f-bl                             \
772   tests/pr/o3Jml24f-lm-lo                       \
773   tests/pr/o3a3Sl24f-tn                         \
774   tests/pr/o3a3Snl24f-tn                        \
775   tests/pr/o3a3l24f-tn                          \
776   tests/pr/o3b3Sl24f-tn                         \
777   tests/pr/o3b3Snl24f-tn                        \
778   tests/pr/o3b3l24f-tn                          \
779   tests/pr/o3mSl24f-bl-tn                       \
780   tests/pr/o3mSnl24fbltn                        \
781   tests/pr/o3ml24f-bl-tn                        \
782   tests/pr/t-0FF                                \
783   tests/pr/t-FF                                 \
784   tests/pr/t-bl                                 \
785   tests/pr/t-t                                  \
786   tests/pr/tFFn                                 \
787   tests/pr/tFFt                                 \
788   tests/pr/tFFt-bl                              \
789   tests/pr/tFFt-ll                              \
790   tests/pr/tFFt-lm                              \
791   tests/pr/tFnFt                                \
792   tests/pr/t_notab                              \
793   tests/pr/t_tab                                \
794   tests/pr/t_tab_                               \
795   tests/pr/ta3-0FF                              \
796   tests/pr/ta3-FF                               \
797   tests/pr/tb3-0FF                              \
798   tests/pr/tb3-FF                               \
799   tests/pr/tn                                   \
800   tests/pr/tn2e5o3-t_tab                        \
801   tests/pr/tn2e8-t_tab                          \
802   tests/pr/tn2e8o3-t_tab                        \
803   tests/pr/tn_2e8-t_tab                         \
804   tests/pr/tn_2e8S-t_tab                        \
805   tests/pr/tne8-t_tab                           \
806   tests/pr/tne8o3-t_tab                         \
807   tests/pr/tt-0FF                               \
808   tests/pr/tt-FF                                \
809   tests/pr/tt-bl                                \
810   tests/pr/tt-t                                 \
811   tests/pr/tta3-0FF                             \
812   tests/pr/tta3-FF                              \
813   tests/pr/ttb3-0FF                             \
814   tests/pr/ttb3-FF                              \
815   tests/pr/w72l24f-ll
816
817 $(TEST_LOGS): $(PROGRAMS)