1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00
Files
coreutils/tests/Makefile.am

51 lines
1.8 KiB
Makefile
Raw Normal View History

2002-07-01 09:24:34 +00:00
## Process this file with automake to produce Makefile.in -*-Makefile-*-.
# Sort in traditional ASCII order, regardless of the current locale;
# otherwise we may get into trouble with distinct strings that the
# current locale considers to be equal.
ASSORT = LC_ALL=C sort
all_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list)
2002-07-01 09:24:34 +00:00
TESTS = help-version
TESTS_ENVIRONMENT = \
all_programs="`$(all_programs)`" \
PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
PATH="`pwd`/../src$(PATH_SEPARATOR)$$PATH"
2002-07-01 09:24:34 +00:00
EXTRA_DIST = \
$(TESTS) .env-warn Coreutils.pm Makefile.am.in README envvar-check \
2002-07-02 08:59:21 +00:00
expensive group-names input-tty lang-default mk-script priv-check \
2005-06-22 18:07:55 +00:00
rwx-to-mode sample-test setgid-check umask-check
2002-07-01 09:24:34 +00:00
SUBDIRS = \
2005-08-13 17:34:11 +00:00
basename chgrp chmod chown cp cut dd dircolors du expr factor \
2004-07-06 16:13:31 +00:00
fmt head install join ln ls ls-2 md5sum misc mkdir mv od pr readlink \
2005-04-05 11:44:54 +00:00
rm rmdir seq sha1sum shred sort stty sum tac tail tail-2 tee test \
touch tr tsort unexpand uniq wc
2002-07-01 09:24:34 +00:00
.PHONY: check-root
2002-07-01 09:24:34 +00:00
check-root:
cd chown && $(MAKE) check TESTS=basic
cd cp && $(MAKE) check TESTS=special-bits
2005-01-04 09:41:14 +00:00
cd rm && $(MAKE) check TESTS=no-give-up
2003-03-04 19:50:23 +00:00
cd rm && $(MAKE) check TESTS=fail-2eperm
2002-07-01 09:24:34 +00:00
check-recursive: evar-check root-hint
2002-07-01 09:24:34 +00:00
# Warn when `make check' is run with POSIXLY_CORRECT or CDPATH set.
.PHONY: evar-check
evar-check:
../src/printenv POSIXLY_CORRECT >/dev/null \
2002-07-01 09:24:34 +00:00
&& sed s/%%/POSIXLY_CORRECT/ $(srcdir)/.env-warn || :
test "$${CDPATH+set}" = set \
&& sed s/%%/CDPATH/ $(srcdir)/.env-warn || :
# Advertise `check-root' target.
.PHONY: root-hint
2002-07-01 09:24:34 +00:00
root-hint:
2003-12-20 11:32:32 +00:00
@echo '***********************************************************'
@echo "NOTICE: Some tests may be run only as root."
@echo " Do \`make check-root' as \`root' to run these tests."
@echo '***********************************************************'