From: Mathieu Lirzin Date: Tue, 4 Feb 2020 14:28:00 +0000 (+0100) Subject: build: fix 'installcheck' target X-Git-Tag: v1.16.2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f19ecc089b017d0f0cde1e960fb1a6a407005164;p=thirdparty%2Fautomake.git build: fix 'installcheck' target * t/local.mk (installcheck-testsuite): Do not use 'pre-inst-env' script. (AM_TESTS_ENVIRONMENT): Ensure that installed perl modules are found. --- diff --git a/t/local.mk b/t/local.mk index 7e3a61965..bd1615e3c 100644 --- a/t/local.mk +++ b/t/local.mk @@ -244,12 +244,22 @@ check-parallel: test_subdirs = %D% %D%/pm contrib/%D% include %D%/CheckListOfTests.am -# Run the testsuite with the installed aclocal and automake. +# Run the testsuite with the installed aclocal and automake without using +# the 'pre-inst-env' wrapper script. installcheck-local: installcheck-testsuite installcheck-testsuite: $(AM_V_GEN)$(MAKE) $(AM_MAKEFLAGS) check \ + LOG_COMPILER=$(AM_TEST_RUNNER_SHELL) \ + PL_LOG_COMPILER=$(PERL) \ am_running_installcheck=yes +# Ensure that the installed Automake perl modules are found when running 'installcheck' target +AM_TESTS_ENVIRONMENT += \ + if test "$${am_running_installcheck}" = yes; then \ + PERL5LIB="$(DESTDIR)$(pkgvdatadir)/$${PERL5LIB:+$(PATH_SEPARATOR)}$$PERL5LIB"; \ + fi; \ + export PERL5LIB; + # Performance tests. .PHONY: perf perf: all