2016-11-26 01:37:43 +02:00
|
|
|
|
# Run program $1 as part of ‘make installcheck’.
|
2020-07-02 18:15:02 +03:00
|
|
|
|
|
|
|
|
|
test-deps =
|
|
|
|
|
|
2014-02-04 12:02:49 +02:00
|
|
|
|
define run-install-test
|
2013-12-10 16:54:34 +02:00
|
|
|
|
|
2020-07-02 12:34:15 +03:00
|
|
|
|
installcheck: $1.test
|
2013-12-10 16:54:34 +02:00
|
|
|
|
|
2020-07-02 12:34:15 +03:00
|
|
|
|
.PHONY: $1.test
|
2020-07-02 18:15:02 +03:00
|
|
|
|
$1.test: $1 $(test-deps)
|
2020-11-09 17:04:18 +02:00
|
|
|
|
@env TEST_NAME=$(basename $1) TESTS_ENVIRONMENT="$(tests-environment)" mk/run_test.sh $1 < /dev/null
|
2013-12-10 16:54:34 +02:00
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
.PHONY: check installcheck
|
2021-10-02 13:09:30 +03:00
|
|
|
|
|
|
|
|
|
print-top-help += \
|
|
|
|
|
echo " check: Run unit tests"; \
|
|
|
|
|
echo " installcheck: Run functional tests";
|