summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-01 09:24:34 +0000
committerJim Meyering <jim@meyering.net>2002-07-01 09:24:34 +0000
commitc69f2e06ce5459ac6654292dcdb9f4bf0bd02e84 (patch)
tree4b2e958ec58bef843edaa1960daa97ba1edb3d52 /tests
parent48ed048feb27f248b435bbc06ba02986b2edd94f (diff)
downloadcoreutils-c69f2e06ce5459ac6654292dcdb9f4bf0bd02e84.tar.xz
merge
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
new file mode 100644
index 000000000..bdc8d4056
--- /dev/null
+++ b/tests/Makefile.am
@@ -0,0 +1,39 @@
+## Process this file with automake to produce Makefile.in -*-Makefile-*-.
+
+TESTS = help-version
+TESTS_ENVIRONMENT = \
+ all_programs="$(bin_SCRIPTS) $(bin_PROGRAMS)"
+
+EXTRA_DIST = \
+ $(TESTS) .env-warn Fetish.pm Makefile.am.in Makefile.am.in README
+ input-tty lang-default mk-script mk-script priv-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 touch && $(MAKE) check TESTS=fifo
+ cd mv && $(MAKE) check TESTS=mv-special-1
+
+check-recursive: envvar-check root-hint
+
+# Warn when `make check' is run with POSIXLY_CORRECT or CDPATH set.
+.PHONY: envvar-check
+envvar-check:
+ test "$${POSIXLY_CORRECT+set}" = set \
+ && 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 will or might need to be"
+ @echo " run as root. Do \`make check-root'"
+ @echo " as \`root' to run just these tests."
+ @echo '********************************************'