mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
* tests/CuTmpdir.pm: New file.
* tests/Makefile.am (EXTRA_DIST): Add CuTmpdir.pm.
* tests/misc/od, tests/misc/base64, tests/misc/basename:
* tests/misc/cut, tests/misc/date, tests/misc/dirname:
* tests/misc/expand, tests/misc/fold, tests/misc/head-elide-tail:
* tests/misc/paste-no-nl, tests/misc/pr, tests/misc/sha224sum:
* tests/misc/sha256sum, tests/misc/sha384sum, tests/misc/sha512sum:
* tests/misc/sort-merge, tests/misc/stat-printf, tests/misc/test-diag:
* tests/misc/wc-files0-from, tests/misc/xstrtol:
* tests/dd/skip-seek, tests/dircolors/simple, tests/du/files0-from:
* tests/expr/basic, tests/factor/basic, tests/fmt/basic:
* tests/ls-2/tests, tests/md5sum/basic-1, tests/md5sum/newline-1:
* tests/seq/basic, tests/sha1sum/basic-1, tests/sha1sum/sample-vec:
* tests/sum/basic-1, tests/tsort/basic-1, tests/unexpand/basic-1:
* tests/mv/i-1, tests/rm/empty-name, tests/rm/unreadable: Use it.
* tests/misc/test-diag: Use "$ENV{abs_top_builddir}/src/test",
not "../../src/test", so it works when run from a subdirectory.
* tests/ls-2/tests: Create temp files and dirs from within the perl
script, so that they're removed, when run from a subdirectory.
66 lines
2.1 KiB
Makefile
66 lines
2.1 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
|
|
|
|
built_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s built_programs.list)
|
|
|
|
TESTS = help-version
|
|
TESTS_ENVIRONMENT = \
|
|
built_programs="`$(built_programs)`" \
|
|
PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
|
|
CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
|
|
PATH="$(VG_PATH_PREFIX)`pwd`/../src$(PATH_SEPARATOR)$$PATH"
|
|
|
|
EXTRA_DIST = \
|
|
$(TESTS) Coreutils.pm CuTmpdir.pm Makefile.am.in README acl envvar-check \
|
|
expensive group-names input-tty lang-default mk-script \
|
|
other-fs-tmpdir priv-check \
|
|
rwx-to-mode sample-test selinux setgid-check sparse-file \
|
|
strace \
|
|
umask-check very-expensive
|
|
|
|
## N O T E :: Please do not add new tests/ directories.
|
|
## There are too many already. Put new tests in misc/.
|
|
SUBDIRS = \
|
|
chgrp chmod chown cp cut dd dircolors du expr factor fmt head \
|
|
install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
|
|
seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \
|
|
tsort unexpand uniq wc
|
|
## N O T E :: Please do not add new directories.
|
|
|
|
all_t = t1 t2 t3 t4 t5 t6 t7 t8 t9
|
|
.PHONY: check-root $(all_t)
|
|
check-root: $(all_t)
|
|
|
|
t1:
|
|
cd chown && $(MAKE) check TESTS=basic
|
|
t2:
|
|
cd cp && $(MAKE) check TESTS=special-bits
|
|
t3:
|
|
cd rm && $(MAKE) check TESTS=no-give-up
|
|
t4:
|
|
cd rm && $(MAKE) check TESTS=fail-2eperm
|
|
t5:
|
|
cd tail-2 && $(MAKE) check TESTS=append-only
|
|
t6:
|
|
cd rm && $(MAKE) check TESTS=one-file-system
|
|
t7:
|
|
cd ls && $(MAKE) check TESTS=nameless-uid
|
|
t8:
|
|
cd misc && $(MAKE) check TESTS=chcon
|
|
t9:
|
|
cd cp && $(MAKE) check TESTS=cp-a-selinux
|
|
|
|
check-recursive: root-hint
|
|
|
|
# Advertise `check-root' target.
|
|
.PHONY: root-hint
|
|
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 '***********************************************************'
|