mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
259e328de8
Grouping our tests should make it easier to understand the intent than one long poorly-arranged list. It also is convenient for running just the tests for a specific component when working on that component. We need at least one test group so this isn't dead code; I decided to collect the tests for the `ca-derivations` and `dynamic-derivations` experimental features in groups. Do ```bash make ca.test-group -jN ``` and ```bash make dyn-drv.test-group -jN ``` to try running just them. I originally did this as part of #8397 for being able to just the local overlay store alone. I am PRing it separately now so we can separate general infra from new features. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
28 lines
513 B
Makefile
28 lines
513 B
Makefile
# Run program $1 as part of ‘make installcheck’.
|
||
|
||
test-deps =
|
||
|
||
define run-install-test
|
||
|
||
.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
|
||
|
||
define run-install-test-group
|
||
|
||
.PHONY: $1.test-group
|
||
|
||
endef
|
||
|
||
.PHONY: check installcheck
|
||
|
||
print-top-help += \
|
||
echo " check: Run unit tests"; \
|
||
echo " installcheck: Run functional tests";
|