aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/fixed.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/fixed.nix')
-rw-r--r--tests/functional/fixed.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/fixed.nix b/tests/functional/fixed.nix
index babe71504..5bdf79333 100644
--- a/tests/functional/fixed.nix
+++ b/tests/functional/fixed.nix
@@ -48,6 +48,15 @@ rec {
(f ./fixed.builder1.sh "flat" "md5" "ddd8be4b179a529afa5f2ffae4b9858")
];
+ badReferences = mkDerivation rec {
+ name = "bad-hash";
+ builder = script;
+ script = builtins.toFile "installer.sh" "echo $script >$out";
+ outputHash = "1ixr6yd3297ciyp9im522dfxpqbkhcw0pylkb2aab915278fqaik";
+ outputHashAlgo = "sha256";
+ outputHashMode = "flat";
+ };
+
# Test for building two derivations in parallel that produce the
# same output path because they're fixed-output derivations.
parallelSame = [