about summary refs log tree commit diff
path: root/tests/secure-drv-outputs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/secure-drv-outputs.nix')
-rw-r--r--tests/secure-drv-outputs.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/secure-drv-outputs.nix b/tests/secure-drv-outputs.nix
new file mode 100644
index 000000000000..b4ac8ff531f8
--- /dev/null
+++ b/tests/secure-drv-outputs.nix
@@ -0,0 +1,23 @@
+with import ./config.nix;
+
+{
+
+  good = mkDerivation {
+    name = "good";
+    builder = builtins.toFile "builder"
+      ''
+        mkdir $out
+        echo > $out/good
+      '';
+  };
+
+  bad = mkDerivation {
+    name = "good";
+    builder = builtins.toFile "builder"
+      ''
+        mkdir $out
+        echo > $out/bad
+      '';
+  };
+
+}