2016-11-25 18:37:43 -05:00
|
|
|
|
# Run program $1 as part of ‘make installcheck’.
|
2020-07-02 11:15:02 -04:00
|
|
|
|
|
|
|
|
|
test-deps =
|
|
|
|
|
|
2014-02-04 05:02:49 -05:00
|
|
|
|
define run-install-test
|
2013-12-10 09:54:34 -05:00
|
|
|
|
|
2020-07-02 05:34:15 -04:00
|
|
|
|
installcheck: $1.test
|
2013-12-10 09:54:34 -05:00
|
|
|
|
|
2020-07-02 05:34:15 -04:00
|
|
|
|
.PHONY: $1.test
|
2020-07-02 11:15:02 -04:00
|
|
|
|
$1.test: $1 $(test-deps)
|
2020-08-28 12:43:34 -04:00
|
|
|
|
@env TEST_NAME=$(notdir $(basename $1)) TESTS_ENVIRONMENT="$(tests-environment)" mk/run_test.sh $1 < /dev/null
|
2013-12-10 09:54:34 -05:00
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
.PHONY: check installcheck
|