Tizen 2.0 Release
[external/tizen-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 all_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list)
9
10 TESTS = help-version
11 TESTS_ENVIRONMENT = \
12   all_programs="`$(all_programs)`" \
13   PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
14   CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
15   PATH="$(VG_PATH_PREFIX)`pwd`/../src$(PATH_SEPARATOR)$$PATH"
16
17 EXTRA_DIST = \
18   $(TESTS) Coreutils.pm Makefile.am.in README acl envvar-check \
19   expensive group-names input-tty lang-default mk-script \
20   other-fs-tmpdir priv-check \
21   rwx-to-mode sample-test setgid-check sparse-file \
22   umask-check very-expensive
23
24 ## N O T E :: Please do not add new tests/ directories.
25 ## There are too many already.  Put new tests in misc/.
26 SUBDIRS = \
27   chgrp chmod chown cp cut dd dircolors du expr factor fmt head \
28   install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
29   seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \
30   tsort unexpand uniq wc
31 ## N O T E :: Please do not add new directories.
32
33 all_t = t1 t2 t3 t4 t5 t6 t7
34 .PHONY: check-root $(all_t)
35 check-root: $(all_t)
36
37 t1:
38         cd chown && $(MAKE) check TESTS=basic
39 t2:
40         cd cp    && $(MAKE) check TESTS=special-bits
41 t3:
42         cd rm    && $(MAKE) check TESTS=no-give-up
43 t4:
44         cd rm    && $(MAKE) check TESTS=fail-2eperm
45 t5:
46         cd tail-2 && $(MAKE) check TESTS=append-only
47 t6:
48         cd rm    && $(MAKE) check TESTS=one-file-system
49 t7:
50         cd ls    && $(MAKE) check TESTS=nameless-uid
51
52 check-recursive: root-hint
53
54 # Advertise `check-root' target.
55 .PHONY: root-hint
56 root-hint:
57         @echo '***********************************************************'
58         @echo "NOTICE: Some tests may be run only as root."
59         @echo "  Do \`make check-root' as \`root' to run these tests."
60         @echo '***********************************************************'