2016-11-25 23:37:43 +00:00
|
|
|
|
# Run program $1 as part of ‘make installcheck’.
|
2020-07-02 15:15:02 +00:00
|
|
|
|
|
|
|
|
|
test-deps =
|
|
|
|
|
|
2023-11-08 05:30:55 +00:00
|
|
|
|
define run-bash
|
2013-12-10 14:54:34 +00:00
|
|
|
|
|
2023-11-08 05:30:55 +00:00
|
|
|
|
.PHONY: $1
|
|
|
|
|
$1: $2
|
|
|
|
|
@env BASH=$(bash) $(bash) $3 < /dev/null
|
2022-12-16 01:17:08 +00:00
|
|
|
|
|
2023-11-08 05:30:55 +00:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define run-test
|
|
|
|
|
|
|
|
|
|
$(eval $(call run-bash,$1.test,$1 $(test-deps),mk/run-test.sh $1 $2))
|
|
|
|
|
$(eval $(call run-bash,$1.test-debug,$1 $(test-deps),mk/debug-test.sh $1 $2))
|
2013-12-10 14:54:34 +00:00
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
2023-11-08 05:30:55 +00:00
|
|
|
|
define run-test-group
|
2023-07-10 02:24:51 +00:00
|
|
|
|
|
|
|
|
|
.PHONY: $1.test-group
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
2013-12-10 14:54:34 +00:00
|
|
|
|
.PHONY: check installcheck
|
2021-10-02 10:09:30 +00:00
|
|
|
|
|
|
|
|
|
print-top-help += \
|
|
|
|
|
echo " check: Run unit tests"; \
|
|
|
|
|
echo " installcheck: Run functional tests";
|