1## Process this file with automake to produce Makefile.in -*-Makefile-*-.
2
3## Copyright (C) 2007-2023 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 <https://www.gnu.org/licenses/>.
17
18# Indirection 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).
21TESTS = $(all_tests) $(factor_tests)
22root_tests = $(all_root_tests)
23
24EXTRA_DIST += $(all_tests)
25
26TEST_EXTENSIONS = .sh .pl .xpl
27
28if HAVE_PERL
29TESTSUITE_PERL = $(PERL)
30else
31TESTSUITE_PERL = $(SHELL) $(srcdir)/tests/no-perl
32endif
33
34# Options passed to the perl invocations running the perl test scripts.
35TESTSUITE_PERL_OPTIONS = -w -I$(srcdir)/tests -MCuSkip -MCoreutils
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.
41TESTSUITE_PERL_OPTIONS += -M"CuTmpdir qw($$f)"
42
43SH_LOG_COMPILER = $(SHELL)
44PL_LOG_COMPILER = $(TESTSUITE_PERL) $(TESTSUITE_PERL_OPTIONS)
45# Perl scripts that must be run in tainted mode.
46XPL_LOG_COMPILER = $(TESTSUITE_PERL) -T $(TESTSUITE_PERL_OPTIONS)
47
48# We don't want this to go in the top-level directory.
49TEST_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.
55TESTS_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) $(single_binary_progs)' \
69  fail=0					\
70  host_os=$(host_os)				\
71  host_triplet='$(host_triplet)'		\
72  srcdir='$(srcdir)'				\
73  top_srcdir='$(top_srcdir)'			\
74  CONFIG_HEADER='$(abs_top_builddir)/$(CONFIG_INCLUDE)' \
75  CU_TEST_NAME=`basename '$(abs_srcdir)'`,`echo $$tst|sed 's,^\./,,;s,/,-,g'` \
76  CC='$(CC)'					\
77  AWK='$(AWK)'					\
78  EGREP='$(EGREP)'				\
79  EXEEXT='$(EXEEXT)'				\
80  MAKE=$(MAKE)					\
81  PACKAGE_VERSION=$(PACKAGE_VERSION)		\
82  PERL='$(PERL)'				\
83  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.
89VERBOSE = yes
90
91EXTRA_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/seek-data-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
109all_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-extents-2.sh			\
117  tests/cp/cross-dev-symlink.sh			\
118  tests/dd/skip-seek-past-dev.sh		\
119  tests/df/problematic-chars.sh			\
120  tests/df/over-mount-device.sh			\
121  tests/du/bind-mount-dir-cycle.sh		\
122  tests/du/bind-mount-dir-cycle-v2.sh		\
123  tests/id/setgid.sh				\
124  tests/install/install-C-root.sh		\
125  tests/ls/capability.sh			\
126  tests/ls/nameless-uid.sh			\
127  tests/chcon/chcon.sh				\
128  tests/chroot/chroot-credentials.sh		\
129  tests/misc/selinux.sh				\
130  tests/truncate/truncate-owned-by-other.sh	\
131  tests/mkdir/writable-under-readonly.sh	\
132  tests/mkdir/smack-root.sh			\
133  tests/mv/hardlink-case.sh			\
134  tests/mv/sticky-to-xpart.sh			\
135  tests/rm/fail-2eperm.sh			\
136  tests/rm/no-give-up.sh			\
137  tests/rm/one-file-system.sh			\
138  tests/rm/read-only.sh				\
139  tests/rm/empty-immutable-skip.sh		\
140  tests/split/l-chunk-root.sh			\
141  tests/tail/append-only.sh			\
142  tests/tail/end-of-device.sh			\
143  tests/touch/now-owned-by-other.sh
144
145ALL_RECURSIVE_TARGETS += check-root
146.PHONY: check-root
147check-root:
148	$(MAKE) check TESTS='$(root_tests)' SUBDIRS=.
149
150# Do not choose a name that is a shell keyword like 'if', or a
151# commonly-used utility like 'cat' or 'test', as the name of a test.
152# Otherwise, VPATH builds will fail on hosts like Solaris, since they
153# will expand 'if test ...' to 'if .../test ...', and the '.../test'
154# will execute the test script rather than the standard utility.
155
156# Notes on the ordering of these tests:
157# Place early in the list tests of the tools that
158# are most commonly used in test scripts themselves.
159# E.g., nearly every test script uses rm and chmod.
160# help-version comes early because it's a basic sanity test.
161# Put seq early, since lots of other tests use it.
162# Put tests that sleep early, but not all together, so in parallel builds
163# they share time with tests that burn CPU, not with others that sleep.
164# Put head-elide-tail early, because it's long-running.
165
166all_tests =					\
167  tests/help/help-version.sh			\
168  tests/help/help-version-getopt.sh		\
169  tests/tail/inotify-race.sh			\
170  tests/tail/inotify-race2.sh			\
171  tests/misc/invalid-opt.pl			\
172  tests/rm/ext3-perf.sh				\
173  tests/rm/cycle.sh				\
174  tests/cp/link-heap.sh				\
175  tests/cp/no-ctx.sh				\
176  tests/tty/tty-eof.pl				\
177  tests/misc/read-errors.sh			\
178  tests/misc/write-errors.sh			\
179  tests/tail/inotify-hash-abuse.sh		\
180  tests/tail/inotify-hash-abuse2.sh		\
181  tests/tail/F-vs-missing.sh			\
182  tests/tail/F-vs-rename.sh			\
183  tests/tail/F-headers.sh			\
184  tests/tail/descriptor-vs-rename.sh		\
185  tests/tail/inotify-rotate.sh			\
186  tests/tail/inotify-rotate-resources.sh	\
187  tests/tail/inotify-dir-recreate.sh		\
188  tests/tail/inotify-only-regular.sh		\
189  tests/chmod/no-x.sh				\
190  tests/chgrp/basic.sh				\
191  tests/rm/dangling-symlink.sh			\
192  tests/ls/ls-time.sh				\
193  tests/rm/d-1.sh				\
194  tests/rm/d-2.sh				\
195  tests/rm/d-3.sh				\
196  tests/rm/deep-1.sh				\
197  tests/rm/deep-2.sh				\
198  tests/rm/dir-no-w.sh				\
199  tests/rm/dir-nonrecur.sh			\
200  tests/rm/dot-rel.sh				\
201  tests/rm/isatty.sh				\
202  tests/rm/empty-inacc.sh			\
203  tests/rm/empty-name.pl			\
204  tests/rm/f-1.sh				\
205  tests/rm/fail-eacces.sh			\
206  tests/rm/fail-eperm.xpl			\
207  tests/tail/assert.sh				\
208  tests/rm/hash.sh				\
209  tests/rm/i-1.sh				\
210  tests/rm/i-never.sh				\
211  tests/rm/i-no-r.sh				\
212  tests/rm/ignorable.sh				\
213  tests/rm/inaccessible.sh			\
214  tests/rm/interactive-always.sh		\
215  tests/rm/interactive-once.sh			\
216  tests/rm/ir-1.sh				\
217  tests/rm/one-file-system2.sh			\
218  tests/rm/r-1.sh				\
219  tests/rm/r-2.sh				\
220  tests/rm/r-3.sh				\
221  tests/rm/r-4.sh				\
222  tests/rm/r-root.sh				\
223  tests/rm/readdir-bug.sh			\
224  tests/rm/rm1.sh				\
225  tests/touch/empty-file.sh			\
226  tests/rm/rm2.sh				\
227  tests/rm/rm3.sh				\
228  tests/rm/rm4.sh				\
229  tests/rm/rm5.sh				\
230  tests/rm/sunos-1.sh				\
231  tests/rm/unread2.sh				\
232  tests/rm/unread3.sh				\
233  tests/rm/unreadable.pl			\
234  tests/rm/v-slash.sh				\
235  tests/rm/many-dir-entries-vs-OOM.sh		\
236  tests/rm/rm-readdir-fail.sh			\
237  tests/chgrp/default-no-deref.sh		\
238  tests/chgrp/deref.sh				\
239  tests/chgrp/no-x.sh				\
240  tests/chgrp/posix-H.sh			\
241  tests/chgrp/recurse.sh			\
242  tests/fmt/base.pl				\
243  tests/fmt/goal-option.sh			\
244  tests/fmt/long-line.sh			\
245  tests/fmt/non-space.sh			\
246  tests/misc/echo.sh				\
247  tests/env/env.sh				\
248  tests/env/env-signal-handler.sh		\
249  tests/ptx/ptx.pl				\
250  tests/test/test.pl				\
251  tests/seq/seq.pl				\
252  tests/seq/seq-epipe.sh			\
253  tests/seq/seq-extra-number.sh			\
254  tests/seq/seq-io-errors.sh			\
255  tests/seq/seq-locale.sh			\
256  tests/seq/seq-long-double.sh			\
257  tests/seq/seq-precision.sh			\
258  tests/head/head.pl				\
259  tests/head/head-elide-tail.pl			\
260  tests/tail/tail-n0f.sh			\
261  tests/ls/ls-misc.pl				\
262  tests/date/date.pl				\
263  tests/date/date-next-dow.pl			\
264  tests/ptx/ptx-overrun.sh			\
265  tests/misc/xstrtol.pl				\
266  tests/tail/overlay-headers.sh			\
267  tests/tail/pid.sh				\
268  tests/od/od.pl				\
269  tests/od/od-endian.sh				\
270  tests/od/od-float.sh				\
271  tests/misc/mktemp.pl				\
272  tests/misc/arch.sh				\
273  tests/misc/join.pl				\
274  tests/pr/pr-tests.pl				\
275  tests/pwd/pwd-option.sh			\
276  tests/chcon/chcon-fail.sh			\
277  tests/misc/coreutils.sh			\
278  tests/cut/cut.pl				\
279  tests/cut/cut-huge-range.sh			\
280  tests/wc/wc.pl				\
281  tests/wc/wc-files0-from.pl			\
282  tests/wc/wc-files0.sh				\
283  tests/wc/wc-nbsp.sh				\
284  tests/wc/wc-parallel.sh			\
285  tests/wc/wc-proc.sh				\
286  tests/wc/wc-total.sh				\
287  tests/cat/cat-E.sh				\
288  tests/cat/cat-proc.sh				\
289  tests/cat/cat-buf.sh				\
290  tests/cat/cat-self.sh				\
291  tests/misc/basename.pl			\
292  tests/basenc/base64.pl			\
293  tests/basenc/basenc.pl			\
294  tests/misc/close-stdout.sh			\
295  tests/chroot/chroot-fail.sh			\
296  tests/cksum/cksum.sh				\
297  tests/cksum/cksum-a.sh			\
298  tests/cksum/cksum-c.sh			\
299  tests/cksum/cksum-base64.pl			\
300  tests/cksum/cksum-raw.sh			\
301  tests/misc/comm.pl				\
302  tests/csplit/csplit.sh			\
303  tests/csplit/csplit-1000.sh			\
304  tests/csplit/csplit-heap.sh			\
305  tests/csplit/csplit-io-err.sh			\
306  tests/csplit/csplit-suppress-matched.pl	\
307  tests/date/date-debug.sh			\
308  tests/date/date-sec.sh			\
309  tests/date/date-tz.sh				\
310  tests/misc/dircolors.pl			\
311  tests/misc/dirname.pl				\
312  tests/env/env-null.sh				\
313  tests/env/env-S.pl				\
314  tests/env/env-S-script.sh			\
315  tests/misc/expand.pl				\
316  tests/expr/expr.pl				\
317  tests/expr/expr-multibyte.pl			\
318  tests/factor/factor.pl			\
319  tests/factor/factor-parallel.sh		\
320  tests/misc/false-status.sh			\
321  tests/misc/fold.pl				\
322  tests/groups/groups-dash.sh			\
323  tests/groups/groups-process-all.sh		\
324  tests/groups/groups-version.sh		\
325  tests/head/head-c.sh				\
326  tests/head/head-pos.sh			\
327  tests/head/head-write-error.sh		\
328  tests/misc/kill.sh				\
329  tests/cksum/b2sum.sh				\
330  tests/cksum/md5sum.pl				\
331  tests/cksum/md5sum-bsd.sh			\
332  tests/cksum/md5sum-newline.pl			\
333  tests/cksum/md5sum-parallel.sh		\
334  tests/misc/mknod.sh				\
335  tests/nice/nice.sh				\
336  tests/nice/nice-fail.sh			\
337  tests/misc/nl.sh				\
338  tests/misc/nohup.sh				\
339  tests/nproc/nproc-avail.sh			\
340  tests/nproc/nproc-positive.sh			\
341  tests/nproc/nproc-override.sh			\
342  tests/misc/numfmt.pl				\
343  tests/od/od-N.sh				\
344  tests/od/od-j.sh				\
345  tests/od/od-multiple-t.sh			\
346  tests/od/od-x8.sh				\
347  tests/misc/paste.pl				\
348  tests/misc/pathchk.sh				\
349  tests/misc/printenv.sh			\
350  tests/printf/printf.sh			\
351  tests/printf/printf-cov.pl			\
352  tests/printf/printf-hex.sh			\
353  tests/printf/printf-mb.sh			\
354  tests/printf/printf-surprise.sh		\
355  tests/printf/printf-quote.sh			\
356  tests/pwd/pwd-long.sh				\
357  tests/readlink/readlink-fp-loop.sh		\
358  tests/readlink/readlink-root.sh		\
359  tests/misc/realpath.sh			\
360  tests/runcon/runcon-compute.sh		\
361  tests/runcon/runcon-no-reorder.sh		\
362  tests/cksum/sha1sum.pl			\
363  tests/cksum/sha1sum-vec.pl			\
364  tests/cksum/sha224sum.pl			\
365  tests/cksum/sha256sum.pl			\
366  tests/cksum/sha384sum.pl			\
367  tests/cksum/sha512sum.pl			\
368  tests/shred/shred-exact.sh			\
369  tests/shred/shred-passes.sh			\
370  tests/shred/shred-remove.sh			\
371  tests/shred/shred-size.sh			\
372  tests/shuf/shuf.sh				\
373  tests/shuf/shuf-reservoir.sh			\
374  tests/misc/sleep.sh				\
375  tests/cksum/sm3sum.pl				\
376  tests/sort/sort.pl				\
377  tests/sort/sort-benchmark-random.sh		\
378  tests/sort/sort-compress.sh			\
379  tests/sort/sort-compress-hang.sh		\
380  tests/sort/sort-compress-proc.sh		\
381  tests/sort/sort-continue.sh			\
382  tests/sort/sort-debug-keys.sh			\
383  tests/sort/sort-debug-warn.sh			\
384  tests/sort/sort-discrim.sh			\
385  tests/sort/sort-files0-from.pl		\
386  tests/sort/sort-float.sh			\
387  tests/sort/sort-h-thousands-sep.sh		\
388  tests/sort/sort-merge.pl			\
389  tests/sort/sort-merge-fdlimit.sh		\
390  tests/sort/sort-month.sh			\
391  tests/sort/sort-exit-early.sh			\
392  tests/sort/sort-rand.sh			\
393  tests/sort/sort-spinlock-abuse.sh		\
394  tests/sort/sort-stale-thread-mem.sh		\
395  tests/sort/sort-unique.sh			\
396  tests/sort/sort-unique-segv.sh		\
397  tests/sort/sort-version.sh			\
398  tests/sort/sort-NaN-infloop.sh		\
399  tests/sort/sort-u-FMR.sh			\
400  tests/split/filter.sh				\
401  tests/split/suffix-auto-length.sh		\
402  tests/split/suffix-length.sh			\
403  tests/split/additional-suffix.sh		\
404  tests/split/b-chunk.sh			\
405  tests/split/fail.sh				\
406  tests/split/lines.sh				\
407  tests/split/line-bytes.sh			\
408  tests/split/l-chunk.sh			\
409  tests/split/r-chunk.sh			\
410  tests/split/record-sep.sh			\
411  tests/split/numeric.sh			\
412  tests/split/guard-input.sh			\
413  tests/stat/stat-birthtime.sh			\
414  tests/stat/stat-fmt.sh			\
415  tests/stat/stat-hyphen.sh			\
416  tests/stat/stat-mount.sh			\
417  tests/stat/stat-nanoseconds.sh		\
418  tests/stat/stat-printf.pl			\
419  tests/stat/stat-slash.sh			\
420  tests/misc/stdbuf.sh				\
421  tests/stty/stty.sh				\
422  tests/stty/stty-invalid.sh			\
423  tests/stty/stty-pairs.sh			\
424  tests/stty/stty-row-col.sh			\
425  tests/cksum/sum.pl				\
426  tests/cksum/sum-sysv.sh			\
427  tests/misc/sync.sh				\
428  tests/tac/tac.pl				\
429  tests/tac/tac-continue.sh			\
430  tests/tac/tac-2-nonseekable.sh		\
431  tests/tail/tail.pl				\
432  tests/misc/tee.sh				\
433  tests/test/test-N.sh				\
434  tests/test/test-diag.pl			\
435  tests/misc/time-style.sh			\
436  tests/timeout/timeout.sh			\
437  tests/timeout/timeout-blocked.pl		\
438  tests/timeout/timeout-group.sh		\
439  tests/timeout/timeout-large-parameters.sh	\
440  tests/timeout/timeout-parameters.sh		\
441  tests/tr/tr.pl				\
442  tests/tr/tr-case-class.sh			\
443  tests/truncate/truncate-dangling-symlink.sh	\
444  tests/truncate/truncate-dir-fail.sh		\
445  tests/truncate/truncate-fail-diag.sh		\
446  tests/truncate/truncate-fifo.sh		\
447  tests/truncate/truncate-no-create-missing.sh	\
448  tests/truncate/truncate-overflow.sh		\
449  tests/truncate/truncate-parameters.sh		\
450  tests/truncate/truncate-relative.sh		\
451  tests/misc/tsort.pl				\
452  tests/tty/tty.sh				\
453  tests/misc/usage_vs_getopt.sh			\
454  tests/misc/unexpand.pl			\
455  tests/uniq/uniq.pl				\
456  tests/uniq/uniq-perf.sh			\
457  tests/uniq/uniq-collate.sh			\
458  tests/misc/xattr.sh				\
459  tests/misc/yes.sh				\
460  tests/tail/wait.sh				\
461  tests/tail/retry.sh				\
462  tests/tail/symlink.sh				\
463  tests/tail/tail-c.sh				\
464  tests/tail/truncate.sh			\
465  tests/chmod/c-option.sh			\
466  tests/chmod/equal-x.sh			\
467  tests/chmod/equals.sh				\
468  tests/chmod/ignore-symlink.sh			\
469  tests/chmod/inaccessible.sh			\
470  tests/chmod/octal.sh				\
471  tests/chmod/setgid.sh				\
472  tests/chmod/silent.sh				\
473  tests/chmod/thru-dangling.sh			\
474  tests/chmod/umask-x.sh			\
475  tests/chmod/usage.sh				\
476  tests/chown/deref.sh				\
477  tests/chown/preserve-root.sh			\
478  tests/chown/separator.sh			\
479  tests/cp/abuse.sh				\
480  tests/cp/acl.sh				\
481  tests/cp/attr-existing.sh			\
482  tests/cp/backup-1.sh				\
483  tests/cp/backup-dir.sh			\
484  tests/cp/backup-is-src.sh			\
485  tests/cp/cp-HL.sh				\
486  tests/cp/cp-deref.sh				\
487  tests/cp/cp-i.sh				\
488  tests/cp/cp-mv-backup.sh			\
489  tests/cp/cp-parents.sh			\
490  tests/cp/debug.sh				\
491  tests/cp/deref-slink.sh			\
492  tests/cp/dir-rm-dest.sh			\
493  tests/cp/dir-slash.sh				\
494  tests/cp/dir-vs-file.sh			\
495  tests/cp/existing-perm-dir.sh			\
496  tests/cp/existing-perm-race.sh		\
497  tests/cp/fail-perm.sh				\
498  tests/cp/sparse-extents.sh			\
499  tests/cp/copy-FMR.sh				\
500  tests/cp/sparse-perf.sh			\
501  tests/cp/sparse-2.sh				\
502  tests/cp/file-perm-race.sh			\
503  tests/cp/into-self.sh				\
504  tests/cp/link.sh				\
505  tests/cp/link-deref.sh			\
506  tests/cp/link-no-deref.sh			\
507  tests/cp/link-preserve.sh			\
508  tests/cp/link-symlink.sh			\
509  tests/cp/nfs-removal-race.sh			\
510  tests/cp/no-deref-link1.sh			\
511  tests/cp/no-deref-link2.sh			\
512  tests/cp/no-deref-link3.sh			\
513  tests/cp/parent-perm.sh			\
514  tests/cp/parent-perm-race.sh			\
515  tests/cp/perm.sh				\
516  tests/cp/preserve-2.sh			\
517  tests/cp/preserve-link.sh			\
518  tests/cp/preserve-mode.sh			\
519  tests/cp/preserve-slink-time.sh		\
520  tests/cp/proc-short-read.sh			\
521  tests/cp/proc-zero-len.sh			\
522  tests/cp/r-vs-symlink.sh			\
523  tests/cp/reflink-auto.sh			\
524  tests/cp/reflink-perm.sh			\
525  tests/cp/same-file.sh				\
526  tests/cp/slink-2-slink.sh			\
527  tests/cp/sparse.sh				\
528  tests/cp/sparse-to-pipe.sh			\
529  tests/cp/special-f.sh				\
530  tests/cp/src-base-dot.sh			\
531  tests/cp/symlink-slash.sh			\
532  tests/cp/thru-dangling.sh			\
533  tests/df/header.sh				\
534  tests/df/df-P.sh				\
535  tests/df/df-output.sh				\
536  tests/df/df-symlink.sh			\
537  tests/df/unreadable.sh			\
538  tests/df/total-unprocessed.sh			\
539  tests/df/no-mtab-status.sh			\
540  tests/df/skip-duplicates.sh			\
541  tests/df/skip-rootfs.sh			\
542  tests/dd/ascii.sh				\
543  tests/dd/direct.sh				\
544  tests/dd/misc.sh				\
545  tests/dd/no-allocate.sh			\
546  tests/dd/nocache.sh				\
547  tests/dd/nocache_eof.sh			\
548  tests/dd/not-rewound.sh			\
549  tests/dd/reblock.sh				\
550  tests/dd/skip-seek.pl				\
551  tests/dd/skip-seek2.sh			\
552  tests/dd/bytes.sh				\
553  tests/dd/skip-seek-past-file.sh		\
554  tests/dd/sparse.sh				\
555  tests/dd/stderr.sh				\
556  tests/dd/unblock.pl				\
557  tests/dd/unblock-sync.sh			\
558  tests/dd/stats.sh				\
559  tests/df/total-verify.sh			\
560  tests/du/2g.sh				\
561  tests/du/8gb.sh				\
562  tests/du/apparent.sh				\
563  tests/du/basic.sh				\
564  tests/du/bigtime.sh				\
565  tests/du/deref.sh				\
566  tests/du/deref-args.sh			\
567  tests/du/exclude.sh				\
568  tests/du/fd-leak.sh				\
569  tests/du/files0-from.pl			\
570  tests/du/files0-from-dir.sh			\
571  tests/du/hard-link.sh				\
572  tests/du/inacc-dest.sh			\
573  tests/du/inacc-dir.sh				\
574  tests/du/inaccessible-cwd.sh			\
575  tests/du/inodes.sh				\
576  tests/du/long-from-unreadable.sh		\
577  tests/du/long-sloop.sh			\
578  tests/du/max-depth.sh				\
579  tests/du/move-dir-while-traversing.sh		\
580  tests/du/no-deref.sh				\
581  tests/du/no-x.sh				\
582  tests/du/one-file-system.sh			\
583  tests/du/restore-wd.sh			\
584  tests/du/slash.sh				\
585  tests/du/threshold.sh				\
586  tests/du/trailing-slash.sh			\
587  tests/du/two-args.sh				\
588  tests/id/gnu-zero-uids.sh			\
589  tests/id/no-context.sh			\
590  tests/id/context.sh				\
591  tests/id/uid.sh				\
592  tests/id/zero.sh				\
593  tests/id/smack.sh				\
594  tests/install/basic-1.sh			\
595  tests/install/create-leading.sh		\
596  tests/install/d-slashdot.sh			\
597  tests/install/install-C.sh			\
598  tests/install/install-C-selinux.sh		\
599  tests/install/install-Z-selinux.sh		\
600  tests/install/strip-program.sh		\
601  tests/install/trap.sh				\
602  tests/ln/backup-1.sh				\
603  tests/ln/hard-backup.sh			\
604  tests/ln/hard-to-sym.sh			\
605  tests/ln/misc.sh				\
606  tests/ln/relative.sh				\
607  tests/ln/sf-1.sh				\
608  tests/ln/slash-decorated-nonexistent-dest.sh	\
609  tests/ln/target-1.sh				\
610  tests/ls/a-option.sh				\
611  tests/ls/abmon-align.sh			\
612  tests/ls/birthtime.sh				\
613  tests/ls/block-size.sh			\
614  tests/ls/classify.sh				\
615  tests/ls/color-clear-to-eol.sh		\
616  tests/ls/color-dtype-dir.sh			\
617  tests/ls/color-norm.sh			\
618  tests/ls/color-term.sh			\
619  tests/ls/color-ext.sh				\
620  tests/ls/dangle.sh				\
621  tests/ls/dired.sh				\
622  tests/ls/file-type.sh				\
623  tests/ls/follow-slink.sh			\
624  tests/ls/getxattr-speedup.sh			\
625  tests/ls/group-dirs.sh			\
626  tests/ls/hex-option.sh			\
627  tests/ls/hyperlink.sh				\
628  tests/ls/infloop.sh				\
629  tests/ls/inode.sh				\
630  tests/ls/m-option.sh				\
631  tests/ls/w-option.sh				\
632  tests/ls/multihardlink.sh			\
633  tests/ls/no-arg.sh				\
634  tests/ls/no-cap.sh				\
635  tests/ls/selinux-segfault.sh			\
636  tests/ls/quote-align.sh			\
637  tests/ls/readdir-mountpoint-inode.sh		\
638  tests/ls/recursive.sh				\
639  tests/ls/removed-directory.sh			\
640  tests/ls/root-rel-symlink-color.sh		\
641  tests/ls/rt-1.sh				\
642  tests/ls/slink-acl.sh				\
643  tests/ls/stat-dtype.sh			\
644  tests/ls/stat-failed.sh			\
645  tests/ls/stat-free-color.sh			\
646  tests/ls/stat-free-symlinks.sh		\
647  tests/ls/stat-vs-dirent.sh			\
648  tests/ls/symlink-loop.sh			\
649  tests/ls/symlink-quote.sh			\
650  tests/ls/symlink-slash.sh			\
651  tests/ls/time-style-diag.sh			\
652  tests/ls/sort-width-option.sh			\
653  tests/ls/x-option.sh				\
654  tests/ls/zero-option.sh			\
655  tests/mkdir/p-1.sh				\
656  tests/mkdir/p-2.sh				\
657  tests/mkdir/p-3.sh				\
658  tests/mkdir/p-acl.sh				\
659  tests/mkdir/p-slashdot.sh			\
660  tests/mkdir/p-thru-slink.sh			\
661  tests/mkdir/p-v.sh				\
662  tests/mkdir/parents.sh			\
663  tests/mkdir/perm.sh				\
664  tests/mkdir/selinux.sh			\
665  tests/mkdir/restorecon.sh			\
666  tests/mkdir/special-1.sh			\
667  tests/mkdir/t-slash.sh			\
668  tests/mkdir/smack-no-root.sh			\
669  tests/mv/acl.sh				\
670  tests/mv/atomic.sh				\
671  tests/mv/atomic2.sh				\
672  tests/mv/backup-dir.sh			\
673  tests/mv/backup-is-src.sh			\
674  tests/mv/childproof.sh			\
675  tests/mv/diag.sh				\
676  tests/mv/dir-file.sh				\
677  tests/mv/dir2dir.sh				\
678  tests/mv/dup-source.sh			\
679  tests/mv/force.sh				\
680  tests/mv/hard-2.sh				\
681  tests/mv/hard-3.sh				\
682  tests/mv/hard-4.sh				\
683  tests/mv/hard-link-1.sh			\
684  tests/mv/i-1.pl				\
685  tests/mv/i-2.sh				\
686  tests/mv/i-3.sh				\
687  tests/mv/i-4.sh				\
688  tests/mv/i-5.sh				\
689  tests/mv/i-link-no.sh				\
690  tests/mv/into-self.sh				\
691  tests/mv/into-self-2.sh			\
692  tests/mv/into-self-3.sh			\
693  tests/mv/into-self-4.sh			\
694  tests/mv/leak-fd.sh				\
695  tests/mv/mv-n.sh				\
696  tests/mv/mv-special-1.sh			\
697  tests/mv/no-copy.sh				\
698  tests/mv/no-target-dir.sh			\
699  tests/mv/part-fail.sh				\
700  tests/mv/part-hardlink.sh			\
701  tests/mv/part-rename.sh			\
702  tests/mv/part-symlink.sh			\
703  tests/mv/partition-perm.sh			\
704  tests/mv/perm-1.sh				\
705  tests/mv/symlink-onto-hardlink.sh		\
706  tests/mv/symlink-onto-hardlink-to-self.sh	\
707  tests/mv/to-symlink.sh			\
708  tests/mv/trailing-slash.sh			\
709  tests/mv/update.sh				\
710  tests/readlink/can-e.sh			\
711  tests/readlink/can-f.sh			\
712  tests/readlink/can-m.sh			\
713  tests/readlink/multi.sh			\
714  tests/readlink/rl-1.sh			\
715  tests/rmdir/fail-perm.sh			\
716  tests/rmdir/ignore.sh				\
717  tests/rmdir/symlink-errors.sh			\
718  tests/rmdir/t-slash.sh			\
719  tests/tail/assert-2.sh			\
720  tests/tail/big-4gb.sh				\
721  tests/tail/flush-initial.sh			\
722  tests/tail/follow-name.sh			\
723  tests/tail/follow-stdin.sh			\
724  tests/tail/pipe-f.sh				\
725  tests/tail/pipe-f2.sh				\
726  tests/tail/proc-ksyms.sh			\
727  tests/tail/start-middle.sh			\
728  tests/touch/60-seconds.sh			\
729  tests/touch/dangling-symlink.sh		\
730  tests/touch/dir-1.sh				\
731  tests/touch/fail-diag.sh			\
732  tests/touch/fifo.sh				\
733  tests/touch/no-create-missing.sh		\
734  tests/touch/no-dereference.sh			\
735  tests/touch/no-rights.sh			\
736  tests/touch/not-owner.sh			\
737  tests/touch/obsolescent.sh			\
738  tests/touch/read-only.sh			\
739  tests/touch/relative.sh			\
740  tests/touch/trailing-slash.sh			\
741  $(all_root_tests)
742
743# See tests/factor/create-test.sh.
744tf = tests/factor
745factor_tests = \
746  $(tf)/t00.sh $(tf)/t01.sh $(tf)/t02.sh $(tf)/t03.sh $(tf)/t04.sh \
747  $(tf)/t05.sh $(tf)/t06.sh $(tf)/t07.sh $(tf)/t08.sh $(tf)/t09.sh \
748  $(tf)/t10.sh $(tf)/t11.sh $(tf)/t12.sh $(tf)/t13.sh $(tf)/t14.sh \
749  $(tf)/t15.sh $(tf)/t16.sh $(tf)/t17.sh $(tf)/t18.sh $(tf)/t19.sh \
750  $(tf)/t20.sh $(tf)/t21.sh $(tf)/t22.sh $(tf)/t23.sh $(tf)/t24.sh \
751  $(tf)/t25.sh $(tf)/t26.sh $(tf)/t27.sh $(tf)/t28.sh $(tf)/t29.sh \
752  $(tf)/t30.sh $(tf)/t31.sh $(tf)/t32.sh $(tf)/t33.sh $(tf)/t34.sh \
753  $(tf)/t35.sh $(tf)/t36.sh
754
755$(factor_tests): $(tf)/run.sh $(tf)/create-test.sh
756	$(AM_V_GEN)$(MKDIR_P) $(tf)
757	$(AM_V_at)$(SHELL) $(srcdir)/$(tf)/create-test.sh $@ \
758	  $(srcdir)/$(tf)/run.sh > $@-t
759	$(AM_V_at)chmod a+x $@-t
760	$(AM_V_at)mv -f $@-t $@
761
762CLEANFILES += $(factor_tests)
763
764pr_data =					\
765  tests/pr/0F					\
766  tests/pr/0FF					\
767  tests/pr/0FFnt				\
768  tests/pr/0FFt					\
769  tests/pr/0FnFnt				\
770  tests/pr/0FnFt				\
771  tests/pr/0Fnt					\
772  tests/pr/0Ft					\
773  tests/pr/2-S_f-t_notab			\
774  tests/pr/2-Sf-t_notab				\
775  tests/pr/2f-t_notab				\
776  tests/pr/2s_f-t_notab				\
777  tests/pr/2s_w60f-t_nota			\
778  tests/pr/2sf-t_notab				\
779  tests/pr/2sw60f-t_notab			\
780  tests/pr/2w60f-t_notab			\
781  tests/pr/3-0F					\
782  tests/pr/3-5l24f-t				\
783  tests/pr/3-FF					\
784  tests/pr/3a2l17-FF				\
785  tests/pr/3a3f-0F				\
786  tests/pr/3a3l15-t				\
787  tests/pr/3a3l15f-t				\
788  tests/pr/3b2l17-FF				\
789  tests/pr/3b3f-0F				\
790  tests/pr/3b3f-0FF				\
791  tests/pr/3b3f-FF				\
792  tests/pr/3b3l15-t				\
793  tests/pr/3b3l15f-t				\
794  tests/pr/3f-0F				\
795  tests/pr/3f-FF				\
796  tests/pr/3l24-t				\
797  tests/pr/3l24f-t				\
798  tests/pr/3ml24-FF				\
799  tests/pr/3ml24-t				\
800  tests/pr/3ml24-t-FF				\
801  tests/pr/3ml24f-t				\
802  tests/pr/4-7l24-FF				\
803  tests/pr/4l24-FF				\
804  tests/pr/FF					\
805  tests/pr/FFn					\
806  tests/pr/FFtn					\
807  tests/pr/FnFn					\
808  tests/pr/Ja3l24f-lm				\
809  tests/pr/Jb3l24f-lm				\
810  tests/pr/Jml24f-lm-lo				\
811  tests/pr/W-72l24f-ll				\
812  tests/pr/W20l24f-ll				\
813  tests/pr/W26l24f-ll				\
814  tests/pr/W27l24f-ll				\
815  tests/pr/W28l24f-ll				\
816  tests/pr/W35Ja3l24f-lm			\
817  tests/pr/W35Jb3l24f-lm			\
818  tests/pr/W35Jml24f-lmlo			\
819  tests/pr/W35a3l24f-lm				\
820  tests/pr/W35b3l24f-lm				\
821  tests/pr/W35ml24f-lm-lo			\
822  tests/pr/W72Jl24f-ll				\
823  tests/pr/a2l15-FF				\
824  tests/pr/a2l17-FF				\
825  tests/pr/a3-0F				\
826  tests/pr/a3f-0F				\
827  tests/pr/a3f-0FF				\
828  tests/pr/a3f-FF				\
829  tests/pr/a3l15-t				\
830  tests/pr/a3l15f-t				\
831  tests/pr/a3l24f-lm				\
832  tests/pr/b2l15-FF				\
833  tests/pr/b2l17-FF				\
834  tests/pr/b3-0F				\
835  tests/pr/b3f-0F				\
836  tests/pr/b3f-0FF				\
837  tests/pr/b3f-FF				\
838  tests/pr/b3l15-t				\
839  tests/pr/b3l15f-t				\
840  tests/pr/b3l24f-lm				\
841  tests/pr/l24-FF				\
842  tests/pr/l24-t				\
843  tests/pr/l24f-t				\
844  tests/pr/loli					\
845  tests/pr/ml20-FF-t				\
846  tests/pr/ml24-FF				\
847  tests/pr/ml24-t				\
848  tests/pr/ml24-t-FF				\
849  tests/pr/ml24f-0F				\
850  tests/pr/ml24f-lm-lo				\
851  tests/pr/ml24f-t				\
852  tests/pr/ml24f-t-0F				\
853  tests/pr/n+2-5l24f-0FF			\
854  tests/pr/n+2l24f-0FF				\
855  tests/pr/n+2l24f-bl				\
856  tests/pr/n+3-7l24-FF				\
857  tests/pr/n+3l24f-0FF				\
858  tests/pr/n+3l24f-bl				\
859  tests/pr/n+3ml20f-bl-FF			\
860  tests/pr/n+3ml24f-bl-tn			\
861  tests/pr/n+3ml24f-tn-bl			\
862  tests/pr/n+4-8a2l17-FF			\
863  tests/pr/n+4b2l17f-0FF			\
864  tests/pr/n+5-8b3l17f-FF			\
865  tests/pr/n+5a3l13f-0FF			\
866  tests/pr/n+6a2l17-FF				\
867  tests/pr/n+6b3l13f-FF				\
868  tests/pr/n+7l24-FF				\
869  tests/pr/n+8l20-FF				\
870  tests/pr/nJml24f-lmlmlo			\
871  tests/pr/nJml24f-lmlolm			\
872  tests/pr/nN1+3l24f-bl				\
873  tests/pr/nN15l24f-bl				\
874  tests/pr/nSml20-bl-FF				\
875  tests/pr/nSml20-t-t-FF			\
876  tests/pr/nSml20-t-tFFFF			\
877  tests/pr/nSml24-bl-FF				\
878  tests/pr/nSml24-t-t-FF			\
879  tests/pr/nSml24-t-tFFFF			\
880  tests/pr/nl24f-bl				\
881  tests/pr/o3Jml24f-lm-lo			\
882  tests/pr/o3a3Sl24f-tn				\
883  tests/pr/o3a3Snl24f-tn			\
884  tests/pr/o3a3l24f-tn				\
885  tests/pr/o3b3Sl24f-tn				\
886  tests/pr/o3b3Snl24f-tn			\
887  tests/pr/o3b3l24f-tn				\
888  tests/pr/o3mSl24f-bl-tn			\
889  tests/pr/o3mSnl24fbltn			\
890  tests/pr/o3ml24f-bl-tn			\
891  tests/pr/t-0FF				\
892  tests/pr/t-FF					\
893  tests/pr/t-bl					\
894  tests/pr/t-t					\
895  tests/pr/tFFn					\
896  tests/pr/tFFt					\
897  tests/pr/tFFt-bl				\
898  tests/pr/tFFt-ll				\
899  tests/pr/tFFt-lm				\
900  tests/pr/tFnFt				\
901  tests/pr/t_notab				\
902  tests/pr/t_tab				\
903  tests/pr/t_tab_				\
904  tests/pr/ta3-0FF				\
905  tests/pr/ta3-FF				\
906  tests/pr/tb3-0FF				\
907  tests/pr/tb3-FF				\
908  tests/pr/tn					\
909  tests/pr/tn2e5o3-t_tab			\
910  tests/pr/tn2e8-t_tab				\
911  tests/pr/tn2e8o3-t_tab			\
912  tests/pr/tn_2e8-t_tab				\
913  tests/pr/tn_2e8S-t_tab			\
914  tests/pr/tne8-t_tab				\
915  tests/pr/tne8o3-t_tab				\
916  tests/pr/tt-0FF				\
917  tests/pr/tt-FF				\
918  tests/pr/tt-bl				\
919  tests/pr/tt-t					\
920  tests/pr/tta3-0FF				\
921  tests/pr/tta3-FF				\
922  tests/pr/ttb3-0FF				\
923  tests/pr/ttb3-FF				\
924  tests/pr/w72l24f-ll
925
926$(TEST_LOGS): $(PROGRAMS)
927