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