forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce notion of a test group, use for CA tests
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 NixOS#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 <[email protected]>
- Loading branch information
1 parent
a8d5bb5
commit 259e328
Showing
7 changed files
with
97 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ca-tests := \ | ||
$(d)/build-with-garbage-path.sh \ | ||
$(d)/build.sh \ | ||
$(d)/concurrent-builds.sh \ | ||
$(d)/derivation-json.sh \ | ||
$(d)/duplicate-realisation-in-closure.sh \ | ||
$(d)/gc.sh \ | ||
$(d)/import-derivation.sh \ | ||
$(d)/new-build-cmd.sh \ | ||
$(d)/nix-copy.sh \ | ||
$(d)/nix-run.sh \ | ||
$(d)/nix-shell.sh \ | ||
$(d)/post-hook.sh \ | ||
$(d)/recursive.sh \ | ||
$(d)/repl.sh \ | ||
$(d)/selfref-gc.sh \ | ||
$(d)/signatures.sh \ | ||
$(d)/substitute.sh \ | ||
$(d)/why-depends.sh | ||
|
||
install-tests-groups += ca | ||
|
||
clean-files += \ | ||
$(d)/config.nix | ||
|
||
test-deps += \ | ||
tests/ca/config.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dyn-drv-tests := \ | ||
$(d)/text-hashed-output.sh \ | ||
$(d)/recursive-mod-json.sh | ||
|
||
install-tests-groups += dyn-drv | ||
|
||
clean-files += \ | ||
$(d)/config.nix | ||
|
||
test-deps += \ | ||
tests/dyn-drv/config.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters