aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2023-01-02 16:09:03 +0100
committerThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2023-01-02 16:09:03 +0100
commit6a90ef072c2a5fcb7aada94763c7ccdb5ae2bae5 (patch)
treec9ad8650ca9727d2d4120f5b18a1588d23f6ee41 /tests
parent105d74eb8177016a1056b6642875c318a148a776 (diff)
Increase the test coverage of `why-depends`
- Test with `--derivation` - Actually test with ca-derivations (was suuposedly done, but not activated because of a missing line in `local.mk`)
Diffstat (limited to 'tests')
-rw-r--r--tests/local.mk1
-rw-r--r--tests/why-depends.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk
index bba6ad9c9..2489baecf 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -92,6 +92,7 @@ nix_tests = \
fmt.sh \
eval-store.sh \
why-depends.sh \
+ ca/why-depends.sh \
import-derivation.sh \
ca/import-derivation.sh \
nix_path.sh \
diff --git a/tests/why-depends.sh b/tests/why-depends.sh
index c12941e76..a04d529b5 100644
--- a/tests/why-depends.sh
+++ b/tests/why-depends.sh
@@ -6,6 +6,9 @@ cp ./dependencies.nix ./dependencies.builder0.sh ./config.nix $TEST_HOME
cd $TEST_HOME
+nix why-depends --derivation --file ./dependencies.nix input2_drv input1_drv
+nix why-depends --file ./dependencies.nix input2_drv input1_drv
+
nix-build ./dependencies.nix -A input0_drv -o dep
nix-build ./dependencies.nix -o toplevel