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