mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 16:16:16 +02:00
20 lines
452 B
Makefile
20 lines
452 B
Makefile
# Run program $1 as part of ‘make installcheck’.
|
||
|
||
test-deps =
|
||
|
||
define run-install-test $1
|
||
.PHONY: $1.test
|
||
$1.test: $1 $(test-deps)
|
||
@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
|
||
|
||
endef
|
||
|
||
.PHONY: check installcheck
|
||
|
||
print-top-help += \
|
||
echo " check: Run unit tests"; \
|
||
echo " installcheck: Run functional tests";
|