Debian Codegraph @

testsuite/check.mk

raw symbols SCIP
1 # Include this file at the end of each tests/*/Makefile.am.
2 # Copyright (C) 2007-2020 Free Software Foundation, Inc.
3
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 built_programs = \
18 echo 'spy:;@echo $$(PROGRAMS) $$(SCRIPTS)' \
19 | MAKEFLAGS= $(MAKE) -s -C $(top_builddir)/src -f Makefile -f - spy \
20 | tr -s ' ' '\n' | sed -e 's,$(EXEEXT)$$,,'
21
22 ## '$f' is set by the Automake-generated test harness to the path of the
23 ## current test script stripped of VPATH components, and is used by the
24 ## shell-or-perl script to determine the name of the temporary files to be
25 ## used. Note that $f is a shell variable, not a make macro, so the use of
26 ## '$$f' below is correct, and not a typo.
27 LOG_COMPILER = \
28 $(SHELL) $(srcdir)/shell-or-perl \
29 --test-name "$$f" --srcdir '$(srcdir)' \
30 --shell '$(SHELL)' --perl '$(PERL)' --
31
32 # Note that the first lines are statements. They ensure that environment
33 # variables that can perturb tests are unset or set to expected values.
34 # The rest are envvar settings that propagate build-related Makefile
35 # variables to test scripts.
36 TESTS_ENVIRONMENT = \
37 tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
38 . $(srcdir)/envvar-check; \
39 TMPDIR=$$tmp__; export TMPDIR; \
40 export \
41 LOCALE_FR='$(LOCALE_FR)' \
42 LOCALE_FR_UTF8='$(LOCALE_FR_UTF8)' \
43 abs_top_builddir='$(abs_top_builddir)' \
44 abs_top_srcdir='$(abs_top_srcdir)' \
45 abs_srcdir='$(abs_srcdir)' \
46 built_programs="`$(built_programs)`" \
47 host_os=$(host_os) \
48 host_triplet='$(host_triplet)' \
49 srcdir='$(srcdir)' \
50 top_srcdir='$(top_srcdir)' \
51 CONFIG_HEADER='$(abs_top_builddir)/lib/config.h' \
52 CU_TEST_NAME=`basename '$(abs_srcdir)'`,$$f \
53 AWK='$(AWK)' \
54 EGREP='$(EGREP)' \
55 EXEEXT='$(EXEEXT)' \
56 MAKE=$(MAKE) \
57 PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
58 PACKAGE_VERSION=$(PACKAGE_VERSION) \
59 PERL='$(PERL)' \
60 PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
61 REPLACE_GETCWD=$(REPLACE_GETCWD) \
62 PATH="$(abs_top_builddir)/src$(PATH_SEPARATOR)$(abs_top_srcdir)/src$(PATH_SEPARATOR)$$PATH" \
63 VERSION=$(VERSION) \
64 ; 9>&2
65
66 TEST_LOGS = $(TESTS:=.log)
67
68 # Parallel replacement of Automake's check-TESTS target.
69 SUFFIXES =
70
71 VERBOSE = yes