aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/fod-failing.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2024-05-15 18:46:06 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-15 18:46:06 +0000
commitaabc90204003ae87ed4ffa504c3f773c7cff9629 (patch)
treead1f228e5fe852297232bb856535649e0f6bfaad /tests/functional/fod-failing.nix
parent0903a99bade6891dd3deba48982d87b7dc29be18 (diff)
parente1463931833670970fbcebd9bece326ac7146205 (diff)
Merge "nix3-build: show all FOD errors with `--keep-going`" into main
Diffstat (limited to 'tests/functional/fod-failing.nix')
-rw-r--r--tests/functional/fod-failing.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/functional/fod-failing.nix b/tests/functional/fod-failing.nix
new file mode 100644
index 000000000..37c04fe12
--- /dev/null
+++ b/tests/functional/fod-failing.nix
@@ -0,0 +1,39 @@
+with import ./config.nix;
+rec {
+ x1 = mkDerivation {
+ name = "x1";
+ builder = builtins.toFile "builder.sh"
+ ''
+ echo $name > $out
+ '';
+ outputHashMode = "recursive";
+ outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
+ };
+ x2 = mkDerivation {
+ name = "x2";
+ builder = builtins.toFile "builder.sh"
+ ''
+ echo $name > $out
+ '';
+ outputHashMode = "recursive";
+ outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
+ };
+ x3 = mkDerivation {
+ name = "x3";
+ builder = builtins.toFile "builder.sh"
+ ''
+ echo $name > $out
+ '';
+ outputHashMode = "recursive";
+ outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
+ };
+ x4 = mkDerivation {
+ name = "x4";
+ inherit x2 x3;
+ builder = builtins.toFile "builder.sh"
+ ''
+ echo $x2 $x3
+ exit 1
+ '';
+ };
+}