aboutsummaryrefslogtreecommitdiff
path: root/mk/tests.mk
blob: e6bd1ad791a31c6cb0c6f437fdb49127665c0722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Run program $1 as part of ‘make installcheck’.

test-deps =

define run-install-test

  installcheck: $1.test

  .PHONY: $1.test
  $1.test: $1 $(test-deps)
	@env TEST_NAME=$1 TESTS_ENVIRONMENT="$(tests-environment)" mk/run_test.sh $1

endef

.PHONY: check installcheck