9 function-line-vs-leading-space \
15 $(TESTS) init.sh t-local.sh
17 # Note that the first lines are statements. They ensure that environment
18 # variables that can perturb tests are unset or set to expected values.
19 # The rest are envvar settings that propagate build-related Makefile
20 # variables to test scripts.
22 tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
23 TMPDIR=$$tmp__; export TMPDIR; \
26 if grep '^\#!/usr/bin/perl' "$$1" > /dev/null; then \
27 if $(PERL) -e 'use warnings' > /dev/null 2>&1; then \
28 grep '^\#!/usr/bin/perl -T' "$$1" > /dev/null && T_=T || T_=; \
29 $(PERL) -w$$T_ -I$(srcdir) -MCoreutils \
30 -M"CuTmpdir qw($$f)" -- "$$1"; \
32 echo 1>&2 "$$tst: configure did not find a usable version of Perl," \
33 "so skipping this test"; \
41 VERSION='$(VERSION)' \
42 abs_top_builddir='$(abs_top_builddir)' \
43 abs_top_srcdir='$(abs_top_srcdir)' \
44 abs_srcdir='$(abs_srcdir)' \
45 built_programs="`$(built_programs)`" \
47 top_srcdir='$(top_srcdir)' \
50 PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
51 PACKAGE_VERSION=$(PACKAGE_VERSION) \
52 CONFIG_HEADER='$(abs_top_builddir)/lib/config.h' \
53 ENABLE_DEVICE_MAPPER=$(ENABLE_DEVICE_MAPPER) \
55 PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
56 REPLACE_GETCWD=$(REPLACE_GETCWD) \
57 PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
61 echo 'spy:;@echo $$(PROGRAMS)' \
62 | MAKEFLAGS= $(MAKE) -s -C $(builddir)/../src -f Makefile -f - spy \
63 | fmt -1 | sed 's,$(EXEEXT)$$,,' | sort -u