mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-21 07:48:04 +08:00
da5834c5d2
remnant) from PATH component. That would cause tests in this directory not to run the just-built binaries, but rather whatever happened to be in one's PATH. Reported by Christian Krackowizer.
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
## 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 = \
|
|
echo 'spy:;@echo $$(all_programs)' \
|
|
| MAKEFLAGS= $(MAKE) -s -C ../src -f Makefile -f - spy \
|
|
| ../src/tr -s ' ' '\n' | $(ASSORT) -u
|
|
|
|
TESTS = help-version
|
|
TESTS_ENVIRONMENT = \
|
|
all_programs="`$(all_programs)`" \
|
|
PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
|
|
PATH="`pwd`/../src$(PATH_SEPARATOR)$$PATH"
|
|
|
|
EXTRA_DIST = \
|
|
$(TESTS) .env-warn Fetish.pm Makefile.am.in README envvar-check \
|
|
expensive group-names input-tty lang-default mk-script priv-check \
|
|
rwx-to-mode sample-test setgid-check
|
|
|
|
SUBDIRS = \
|
|
basename chgrp chmod chown cp cut date dd dircolors du expr factor \
|
|
fmt head install join ln ls ls-2 md5sum misc mkdir mv od pr rm rmdir \
|
|
seq sha1sum shred sort stty sum tac tail tail-2 test touch tr tsort \
|
|
unexpand uniq wc
|
|
|
|
check-root:
|
|
cd chown && $(MAKE) check TESTS=basic
|
|
cd cp && $(MAKE) check TESTS=special-bits
|
|
cd mv && $(MAKE) check TESTS=mv-special-1
|
|
cd rm && $(MAKE) check TESTS=fail-2eperm
|
|
|
|
check-recursive: evar-check root-hint
|
|
|
|
# Warn when `make check' is run with POSIXLY_CORRECT or CDPATH set.
|
|
.PHONY: evar-check
|
|
evar-check:
|
|
../src/printenv POSIXLY_CORRECT >/dev/null \
|
|
&& sed s/%%/POSIXLY_CORRECT/ $(srcdir)/.env-warn || :
|
|
test "$${CDPATH+set}" = set \
|
|
&& sed s/%%/CDPATH/ $(srcdir)/.env-warn || :
|
|
|
|
# Advertise `check-root' target.
|
|
root-hint:
|
|
@echo '***********************************************************'
|
|
@echo "NOTICE: Some tests may be run only as root."
|
|
@echo " Do \`make check-root' as \`root' to run these tests."
|
|
@echo '***********************************************************'
|