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.
26 cp/cp-mv-enotsup-xattr \
27 dd/skip-seek-past-dev \
28 install/install-C-root \
32 misc/chroot-credentials \
34 misc/truncate-owned-by-other \
35 mkdir/writable-under-readonly \
42 touch/now-owned-by-other
46 $(MAKE) check TESTS='$(root_tests)'
48 check-recursive: root-hint
50 # Advertise `check-root' target.
53 @echo '***********************************************************'
54 @echo "NOTICE: Some tests may be run only as root."
55 @echo " See the 'Running tests as root' section in README."
56 @echo '***********************************************************'
58 EXTRA_DIST += $(TESTS)
60 # Do not choose a name that is a shell keyword like 'if', or a
61 # commonly-used utility like 'cat' or 'test', as the name of a test.
62 # Otherwise, VPATH builds will fail on hosts like Solaris, since they
63 # will expand 'if test ...' to 'if .../test ...', and the '.../test'
64 # will execute the test script rather than the standard utility.
66 # Notes on the ordering of these tests:
67 # Place early in the list tests of the tools that
68 # are most commonly used in test scripts themselves.
69 # E.g., nearly every test script uses rm and chmod.
70 # help-version comes early because it's a basic sanity test.
71 # Put seq early, since lots of other tests use it.
72 # Put tests that sleep early, but not all together, so in parallel builds
73 # they share time with tests that burn CPU, not with others that sleep.
74 # Put head-elide-tail early, because it's long-running.
106 rm/interactive-always \
107 rm/interactive-once \
125 chgrp/default-no-deref \
134 misc/seq-long-double \
136 misc/head-elide-tail \
152 misc/pwd-unreadable-parent \
156 misc/wc-files0-from \
179 misc/groups-version \
185 misc/md5sum-newline \
186 misc/md5sum-parallel \
193 misc/nproc-positive \
203 misc/printf-surprise \
205 misc/readlink-fp-loop \
206 misc/runcon-no-reorder \
220 misc/sort-files0-from \
222 misc/sort-merge-fdlimit \
246 misc/timeout-parameters \
248 misc/truncate-dangling-symlink \
249 misc/truncate-dir-fail \
250 misc/truncate-fail-diag \
252 misc/truncate-no-create-missing \
253 misc/truncate-overflow \
254 misc/truncate-parameters \
255 misc/truncate-relative \
269 chmod/thru-dangling \
273 chown/preserve-root \
289 cp/existing-perm-race \
300 cp/parent-perm-race \
303 cp/preserve-slink-time \
323 dd/skip-seek-past-file \
339 du/inaccessible-cwd \
340 du/long-from-unreadable \
352 install/create-leading \
355 install/install-C-selinux \
356 install/strip-program \
363 ln/slash-decorated-nonexistent-dest \
366 ls/color-clear-to-eol \
378 ls/proc-selinux-segfault \
379 ls/readdir-mountpoint-inode \
384 ls/stat-free-symlinks \
447 tail-2/flush-initial \
448 tail-2/follow-stdin \
452 tail-2/start-middle \
454 touch/dangling-symlink \
458 touch/no-create-missing \
459 touch/no-dereference \
465 touch/trailing-slash \
630 include $(srcdir)/check.mk