Port tests/rmdir/ignore away from GNU/Linux.
[coreutils/ericb.git] / tests / Makefile.am
blobf7c837fae164594a29e9b8bd6582ab0221ce0acf
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 built_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s built_programs.list)
10 EXTRA_DIST =            \
11   Coreutils.pm          \
12   CuTmpdir.pm           \
13   Makefile.am.in        \
14   README                \
15   acl                   \
16   check.mk              \
17   envvar-check          \
18   expensive             \
19   group-names           \
20   input-tty             \
21   lang-default          \
22   mk-script             \
23   other-fs-tmpdir       \
24   priv-check            \
25   rwx-to-mode           \
26   sample-test           \
27   setgid-check          \
28   sparse-file           \
29   strace                \
30   test-lib.sh           \
31   umask-check           \
32   very-expensive
34 # Regarding ordering in SUBDIRS, place early in the list the tools that
35 # are most commonly used in test scripts.  Every test script uses rm
36 # and chmod, so they have to be very early.
37 # Ordering within misc/ should handle the rest.
39 ## N O T E :: Please do not add new tests/ directories.
40 ## There are too many already.  Put new tests in misc/.
41 SUBDIRS = \
42   rm \
43   chmod \
44   misc \
45   chgrp chown cp cut dd du head \
46   install join ln ls mkdir mv pr readlink rmdir \
47   sort tac tail tail-2 test touch tr \
48   uniq wc
49 ## N O T E :: Please do not add new directories.
51 all_t = t1 t2 t3 t4 t5 t6 t7 t8 t9 ta tb
52 .PHONY: check-root $(all_t)
53 check-root: $(all_t)
55 t1:
56         cd chown && $(MAKE) check TESTS=basic
57 t2:
58         cd cp    && $(MAKE) check TESTS=special-bits
59 t3:
60         cd rm    && $(MAKE) check TESTS=no-give-up
61 t4:
62         cd rm    && $(MAKE) check TESTS=fail-2eperm
63 t5:
64         cd tail-2 && $(MAKE) check TESTS=append-only
65 t6:
66         cd rm    && $(MAKE) check TESTS=one-file-system
67 t7:
68         cd ls    && $(MAKE) check TESTS=nameless-uid
69 t8:
70         cd misc  && $(MAKE) check TESTS=chcon
71 t9:
72         cd cp    && $(MAKE) check TESTS=cp-a-selinux
73 ta:
74         cd mkdir && $(MAKE) check TESTS=writable-under-readonly
75 tb:
76         cd mv    && $(MAKE) check TESTS=sticky-to-xpart
78 check-recursive: root-hint
80 # Advertise `check-root' target.
81 .PHONY: root-hint
82 root-hint:
83         @echo '***********************************************************'
84         @echo "NOTICE: Some tests may be run only as root."
85         @echo "  Do \`make check-root' as \`root' to run these tests."
86         @echo '***********************************************************'