aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/failing.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/failing.nix')
-rw-r--r--tests/functional/failing.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/functional/failing.nix b/tests/functional/failing.nix
new file mode 100644
index 000000000..2a0350d4d
--- /dev/null
+++ b/tests/functional/failing.nix
@@ -0,0 +1,22 @@
+{ busybox }:
+with import ./config.nix;
+let
+
+ mkDerivation = args:
+ derivation ({
+ inherit system;
+ builder = busybox;
+ args = ["sh" "-e" args.builder or (builtins.toFile "builder-${args.name}.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
+ } // removeAttrs args ["builder" "meta"])
+ // { meta = args.meta or {}; };
+in
+{
+
+ failing = mkDerivation {
+ name = "failing";
+ buildCommand = ''
+ echo foo > bar
+ exit 1
+ '';
+ };
+}