summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--tests/check.mk11
2 files changed, 9 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 7fead3d49..138e72abb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,6 +76,7 @@
/stamp-h1
/tests/*/*.log
/tests/t?
+/tests/.built-programs
/tests/test-suite.log
ID
Makefile
diff --git a/tests/check.mk b/tests/check.mk
index f931806d2..b80dce8ac 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -40,8 +40,13 @@ vc_exe_in_TESTS: Makefile
check: vc_exe_in_TESTS
.PHONY: vc_exe_in_TESTS
-built_programs = \
- (cd $(top_builddir)/src && MAKEFLAGS= $(MAKE) -s built_programs.list)
+CLEANFILES =
+CLEANFILES += .built-programs
+check-am: .built-programs
+.built-programs:
+ $(AM_V_GEN)cd $(top_builddir)/src \
+ && MAKEFLAGS= $(MAKE) -s built_programs.list \
+ > $@-t && mv $@-t $@
# Note that the first lines are statements. They ensure that environment
# variables that can perturb tests are unset or set to expected values.
@@ -76,7 +81,7 @@ TESTS_ENVIRONMENT = \
abs_top_builddir='$(abs_top_builddir)' \
abs_top_srcdir='$(abs_top_srcdir)' \
abs_srcdir='$(abs_srcdir)' \
- built_programs="`$(built_programs)`" \
+ built_programs="`cat .built-programs`" \
host_os=$(host_os) \
host_triplet='$(host_triplet)' \
srcdir='$(srcdir)' \